Work in progress

* Extract class from InvitationsController
* Trying to figure out how to handle invalid invitations