Quantum correlations and non-demolition measurements using two-photon non-linearities in optical cavities