Fix Resource server Request HTTP header access

Rather than using a raw `new Request` call, which only works with Apache, use `Request:: buildFromGlobals` to work in other scenarios. Also expands and cleans up the `Util\Request::readHeaders` method and adds support for the http extension.