Quantum many-body models with cold atoms coupled to photonic crystals