API: Add hooks endpoint for GitHub integration

This is only a pull request so that the payload can be used for testing
the GitHub Webhooks integration.