Added logic to dynamically determine group relationship/relationship type...
Added logic to dynamically determine group relationship/relationship type machine name (so, e.g., we can use group_content_type for 2.x and group_relationship_type for 3.x)
Closes #3381073