[#409, #715, #716] Registration process based on email

Registration process is now based on email instead of username. Usernames are still stored in the username_old field, new users will have their email address as a username.
In addition, user activation emails are updated.