Quantum correlations in cavity QED networks