Restore use of onload/onerror for XDomainRequest

* Improve assertion around detecting request mechanism
Build 0.7.1