Invitations and registration system implemented, refactorings