Enterprise resources

I have made the logic less duplicatey, and easier to read (thanks!).  Now invites_to_remove is `outstanding_invites.keys - (new_resource.invites | new_resource.members)` and members_to_remove is `existing_members - (new_resource.invites | new_resource.members)`.