Added md5 Password encryption + Proper logout

Note: Old logins WILL NOT WORK, this is not a bug, it is because the
encrypted password you try to log in with will not match the old
unencrypted passwords.

Logout.php ends session properly now and redirects to login page