support custom refs in Repository.contents()

Adds support for optional `ref` parameter in `Repository.contents()`

http://developer.github.com/v3/repos/contents/ under "Get contents"