Improved user management, fixed broken emailing.