Added a first revision of the router and added some route registering/deregistering functions