Refactor getJSON to be more flexible for future needs.

Modify to getJSON to return (*http.Response, error).
Check for the link header in GitHub specific code.
Excellent suggestions from
https://github.com/golang/gddo/pull/178#issuecomment-48007781. Thanks
@garyburd!