Added support to User class for single user mode and using a login code. Both are used by deploy.php, single user mode will be set if an email address is passed to the script as a url parameter, a login code will be created if a password is not provided.
Single user mode