Add responseText and status code support to XHR

Blocks #2282