added support for extra_http_response_headers

this supercedes the previous patch.