Add ability to stub responses for testing purposes rather than mocking XMLHttpRequest objects for everything.