Integrated nonlinear photonic circuits for mediating and detecting photon-photon interactions