(#2660) using xhr.timeout

Responses are never delivered when we use XHR.upload in
mobile safari when making requests against URLs
that are handled by NSURLPrototocol.

This is to fix #2660.

Not sure if there was a good reason this wasn't done in the first place...