Dispersive Quantum Interface with Atoms and Nanophotonic Waveguides