httpd: implemented framework for more generic POSTS
 - this should make the new xmlrpc implementation easier