Add support for hooks

This pull request adds general support for user-defined hooks in the Gollum backend with an initial implementation for post commit hooks. See #12 for discussion.