Theory of Light - Atomic Ensemble Interactions: Entanglement, Storage, and Retrieval