Minor hub server improvements.

Clean up some unused code; add a little support for running hub on a hosting service.