Usermanagement

@rcrichton  Please have a look at what I have done here with user management, I have added the requested tests as well.
Let call this 'email' rather to make the intention clear.