Added basic routing and session handling