XMLHttpRequest shim for Titanium to mirror web api