Refactoring main to make it a little cleaner
[TRIVIAL] some minor refactoring
Using updated version of git2go

per https://github.com/libgit2/git2go/issues/87