Initial implementation of "log out" functionality. #16