Git library checkout fixed to work with commit hashes (close #302)

Parameter branch is added to specify branch name. Use treeish to specify
commit or tag.
Changelog updated