Implemented logout
Merge remote-tracking branch 'extendedmind/master'