Support for git_odb_hash.

Hello hello!

This is just a small PR adding support for git_odb_hash. It comes in handy when implementing something similar to `git hash-object`. Had to use it today and saw git2go didn't get to implement it, so here are my 2 cents if you care to accept them (: