added reference to academic_entity in group
added type field in academic_entities
added academic_entity_id and academic_entity_type to Group
added syncer script
fixed silly syntax errors
fixed join order problem
UserRepository now properly populates groups
Merge branch 'master' into academic-entity