Improve bindings

I'm working through https://libgit2.github.com/docs/guides/101-samples/. A lot of work is still needed.
Should this be a ``make`` method?

(The error could be signaled rather than returned?)