Cavity QED based on collective magnetic dipole coupling: spin ensembles as hybrid two-level systems.