graph: allow retrieval of ahead/behind commits

Make the existing `git_graph_ahead_behind()` return a
`git_graph_commit_list` opaque type, from which both
the count and the actual commits can be retrieved.