Re-implement AssignedGroups along side AssignedPersons manually taking the good stuff from r240. As per revised ticket #37.