Various fixes. Refactoring of session routes.