Added a 'sending' event so users can modify the xhr object before sending.

Closes #11