Split start and setup of server for individual use of http handler.
Small changes to support google app engine.