Fix Issue #70 : implement branch API

Hey,

This should implement what is requested in Issue #70.

Note however that in th eprocess of testing the `each_branch` I uncovered an inconsistency in branch naming in libgit2 (libgit2/libgit2#763)

Regards