A more flexible replacement for libevent's httpd API