Implemented registrationcodes. Need to look over activation links and html formatting of email, described in issue #31.