Logout feature implemented and passing all tests

The logout feature implemented and passing tests. Check it out when you have time, no major changes.