Cleanup http server code.