Email handling, registration confirmation and editing. Lots of fixes, improvements and refactoring.