Effective spin physics in two-dimensional cavity QED arrays. (3rd July 2017)