allow http.Agent usage

by passing in an `http.Agent` instance (either `http.globalAgent` or a new instance) to the XMLHttpRequest constructor
make XMLHttpRequeset constructor take an `options` object

Matches the Firefox non-standard extensions API this way, and allows
for future extensions and options if necessary.