clean up buffer.jl, remove api.libgit use and remove api.GitBuffer