Merge pull request #24 from Parranoia/master

Added the ability to logout and neatened up the error messages displayed...
Added email verification using PHPMailer to go through the gmail SMTP servers until we can setup one of our own.

The gmail username and password needs to be changed in pages/register.php in order for the emails to be sent.

Needs testing.