Implement logout functionality 

#111 closed