Use git_{object,tree}_owner (#228)

Note that libgit2's git_commit_owner is missing from the public
interface, so we cannot use it.