extended gitolite service to take custom hooks

Closes #4160