Configurable request agent

Merged https://github.com/driverdan/node-XMLHttpRequest/pull/56