Invitations, ajax collaborator manager and some more refactoring