Add loadWithXhr options.

In other applications, it would be convenient to implement POST/PUT functions on top of the existing loadWithXhr function, which already handles binding an XHR to a promise, etc.