Hub server cleanup: removed unused imports and assignments.
Support running hub server on hosting services (appfog, modulus, etc).
Merge pull request #669 from cscott/server-fixes

Minor hub server improvements.