Adding commit APIs

This is to support https://github.com/github/hub/pull/601

/cc @mislav