tools/pipbot: Refactor finish release to use git API

Issue #193.
Merge branch 'issue/193'