added the most basic of session support, in the form of a simple login/logout