Moved session creation to repository
Factored out application shell to a seperate class