Added support for getting the 40 character formated SHA-1 hash of a git object.

- also changed the return type of #repository_open: to be git_return_t for proper enum support

Signed-off-by: Stefan Marr <git@stefan-marr.de>