Misc fixes

Fixes for a few things we've been bitten by recently:

+ AbstractBootstrapper's UseConfiguration method failed with a NullReference exception, fixed
+ Consistent handling of "localhost" urls at service startup and in the endpointrouter
   startup replaces localhost with the machine name, which then means endpointrouter entries
   for localhost don't get routed correctly.
+ Castle container's component registration method moved to an extension method for use
   outside the bootstrapper
+ Tests