Added code and test for getGroups(InterMineBag)

Also renamed the appalling method getGroupsUserBelongsTo to getGroups.
We can double dispatch over getGroups(Profile).