Add pre_consume and post_consume extensions.
Merge pull request #17 from mokshaproject/feature/hooks

Add pre_consume and post_consume extensions.