Request changes from jetpack 1.14 not master 

Fixes #553

Sorry, I accidentally took as a base for my changes `request.js` from jetpack's master branch, not from 1.14. I reverted all the diffs not related to my patch for HEAD requests.