Support `xhrFields` Ajax option

Fixes #842, closes #843