Added login and logout functionality.

Added dynamic login/logout button, and sent the user status to the
template through a struct that also contains the greeting information.