WiP for one time tokens

* Added token type class
* Storing Token Type as ID not varchar
* Added new system to user class and fixed issues with it
* Started on mail verification process in user class
* Updated autoloader
* Updated change password template

Addresses #330
Adding email verification

* Adding mail verification during account registration
* Added new dist file option for mail verification
* Added account confirmation page using tokens
* Added mail class into user class for password resets
* Moved password reset template
* Adjusted account registration page
* Adjusted user class for email confirmation

Also fixed a bug with smarty_cache_key not being used properly if smarty
is disabled. Key still needs to be available even if caching is disabled

Addresses #330 and prepare the ticket for invitation only system.
Go through activiation even for admin accounts

Fixes an issue with accounts being locked after trying to activate it.

Addresses #330
fixing syntax error
Adding invitation system to mmcfe-ng core

This will allow users to send invitations to other people via email.
Each account will still need to confirm the email address if the option
is enabled.

Addresses #330, will need to allow pool operators to enable this feature
even with registrations turned off.
Make invitations configurable via admin panel

Invitations can now be configured through admin panel settings. By
default, invitations are enabled. Invitation system is also available if
registrations are disabled. To completely remove the ability of new
users to sign up, disable both registration and invitations.

Fixes #330
removing unused token methods
Fixing issue with registration disabled and invitations

This will fix an issue with certain combinations of registration and/or
invitations being enabled or disabled.

Addresses #330
Another fix for registration issues

Addresses #330
Fixing PHP Warning on unsert token on register

Addresses #330 and cleans up PHP Log
Further fixes to PHP warnings

Addresses #330 and further cleans up the PHP log.
Fixing PHP Warning on resetting failed login count

Addresses #330 and further cleans PHP Log
Adding inline docuemtation to invitation class

Adding proper inline documentation to invitation class.
Merge pull request #463 from TheSerapher/issue-330

Issue 330