Consistent handling of localhost

Fix an issue where queue URLs containing localhost were being normalised
to the machine name when the bus was set up, but the same was not being
done in the EndpointRouter.