Improved Login / Logout

Added some unit tests
Fixed logout to correctly pass request to server
General UI cleanup