Added test for UserManager
More tests added, but still not finished.
Wrong assumption about timestamps
BackendManager tests complete
1000 runs in login/logout loop
Count for active sessions corrected
Tests for ControllerBackend
AppLogout tests
App Shutdown tests
More tests and some corrections
Made code a little bit clearer
Count error corrected (led to test failure)
Merge pull request #29 from edelbluth/tests_for_main_app

Tests for main app and some refactoring