Issue #29 work. Started to implement libgit2.

There are some linker errors, but I'll fix them once implementation is
finished.