Fixed logout problem with CSRF. Started to work on getting login/logout links right.