make responseObject always available, fix promise chaining, make XHR.main testable
0.5.1