Implement git_odb_foreach

I have not actually tested it, but it builds and should be sufficiently straightforward to just work.