THRIFT-2844: Nodejs support broken when running under Browserify

Add option for setting the desired XHR responseType.

When running the http client under Browserify, the data provided in the callback will be a string or a Uint8Array ArrayBuffer. Wrap both of those in a Buffer so ``data[i].copy`` can succeed.