Add Gist API

This PR is to support https://github.com/github/hub/pull/601.

/cc @mislav
@jingweno I've changed direction and constrained all HTTP requests to the test server by means of a custom http.Transport. It works! Let me know what you think.