Allow `options.body` and `options.json` to be functions.

Addresses issue #13.
Merge pull request #14 from eladxxx/master

Allow `options.body` and `options.json` to be functions.