Adding emulated version of apache_request_headers() function for compatibility with non-apache webservers. Ideally the dependency on this function would be removed, but that can be looked at later?