Quantum optics using Rydberg atoms and atomic lattices