Adding Compare and Refs commands to API

Supporting http://developer.github.com/v3/git/refs/ and http://developer.github.com/v3/repos/commits/#compare-two-commits

I've not checked in my unit tests for this since the current tests don't work properly (they perform actions not available to some users) and don't want to add further tests like this.