Add support for the refs API

This is the code to take care of issue #71 . It adds support for the [refs API](http://developer.github.com/v3/git/refs/).

Not sure how it works with adding myself to CONTRIBUTORS/AUTHORS, but I signed that Google CLA already (as Ondřej Kupka)...