WiP: tests for XHR events.
Make this a drop-in replacement for xmlhttprequest.