Use Octokit for as much as possible

Removes dependencies on the `rest-client` and `json` gems, and uses `octokit` instead.