Merge pull request #14 from dmend/master

Added login/logout.