Add feature to generate POST and PUT request bodies dynamically.

Fixes issue #29

Note that I did quite some changes to how headers are handled. Previously it was arrays of arrays (and I couldn't figure out why), now it is plain objects. Unless I missed something I think it simplifies everything quite a bit in addition to provide easier lookup and replacement for headers.