allow before/after fn on request definition
additional tests
fix bad tests
Merge pull request #6 from erikdonohoo/before-after-fn

Allow before/after function