WIP - added resources for groups and invitations

They both need their tests re-done.