Features/repository hash

Implement `hash` on repository which hashes content without actually writing anything.

I'm about to try to implement hashfile, is there a good place to look at how to deal with filehandles in the C api?