Enabled logout functionality

Also cleaned up the login area of the site, making the logout and login
buttons appear/disappear respectively if you're logged in or logged out.