Refactoring: Extracted Session and Router instances

Removed both from Application class and made them
singletons.