Merge pull request #1 from jussi-kalliokoski/xhr

XHR
Merge pull request #3 from jussi-kalliokoski/xhr

Implemented `crossOrigin` property.
Changed tests to assume JSON responses.
Added response type handler for JSON.
Added response type handling for `text`.
Added response type handler for XML.