Coherent nonlinear optics of quantum emitters in nanophotonic waveguides