Berry phase in controlled light propagation and storage