Refactors add_request_header() for usage in both fpm and cgi.

Since fcgi_hash_apply requires an fcgi_apply_func, and fpm/cgi require
different padding for their header, I have to go through a bridge
function to refactor add_request_header into main/SAPI.[c|h]