Update copyright.
Add appropriate headers.
Add some error handling via map-result.
Complete update to libgit2 0.18.0.

Process the new headers, export the new bindings.
Add a couple of very simple sanity tests.