Removed the reference to ManagementServiceException as it resides in another module.
Fixed several bugs. The routers now work reasonably well.