Users invitations

The admins should be able to send user invites, which will allow the users to register for accounts, no matter if the registration is disabled or not.

Depends on #1169 being merged first. Also related to #399.