Dispersive Quantum Interface With Atoms And Nanophotonic Waveguides