Updated xhr.js (+ doUpload), apitest, and API.txt