Two-Photon Quantum Gates With Single Atoms