New user registration functionality - updates registration form and sends an e-mail

Still testing - won't merge just yet