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.
Format of the values is different here, but it doesn't matter because of the `normalizeHeaders` call below.