Feature: move router id to form url

- replace the session object by passing its parameters either via url (router id) or handling them directly
- fix minor other issues encountered in the process