Added login/logout.
Merge pull request #14 from dmend/master

Added login/logout.