Move request handling code out of http_server and into http_server_main
Add a data parameter to the http_server callback
callback -> handler