refactor mapcache_http object and usage to include headers and post body