Add logic to lib users/Auth to generate confirmation codes

* Create config option for expiration time of registration codes
* Add model users/user_code_m handling multiple types of codes
* Add logic for confirming a user account via given code
Update module users with finalized registration and general user-login