Get session login and logout working
WIP: login unit test
Refactor runner code a bit
Unit test for session login
Unit test for session close