Initial the http server code.