Implemented logout functionality
Merge pull request #180 from jidel/issue#169

Implemented logout functionality