Add custom_hook support. Fixes #103
Merge pull request #107 from dblessing/feature/custom_hooks

Add custom_hook support