add support for hooks

This enables others to reuse the raw data eg. for generation of signatures. I use this at https://github.com/gittalk/git-hook/blob/master/test/ghsigned.js#L76 to verify signatures of http requests.