Added saving of generated code for forgotten passwords.
Mail is now sent to user's emailaddress instead of dev's.