Moving session handling into the router.
Forgot to commit
Adding more functionality to the user subpackage.