Partial support for Git Trees API

I needed to fetch Git trees in another project. This PR adds support for [getting a tree][api] via the API.

/cc @jingweno 

[api]: https://developer.github.com/v3/git/trees/#get-a-tree