Helper class for making xhr requests

Adds a wrapper class to make xhr requests easier.

Example:

    var request = new Request(url, creds);
    url.put(data).then( ... );

Supports `put`, `get`, `post`, and `delete`.

I've included a test suite for it, along with fixes to other test suites to make mocha happy.