[WIP] Implement Repository Hooks & Repository Forks

This replaces #313. I've rebased it with master, and cleaned up a few things that were missing on the original PR. This is what's left

- [ ] Write integration tests
 - [ ] For Hooks API
 - [ ] For Forks API

Anything else?