Use responseType = document and Zotero.HTTP.wrapDocument

Closes #3, Mimic document.defaultView in hacks.js