Correlations and Entanglement with Photons in Cavities