Photon, spin, and Raman echoes