extract couch_httpd changes API in its own module