Introduce libgit2 options

Allow setting and getting the mwindow size and search paths.