Quantum theory of resonance fluorescence with recoil effects