Implement clone

To merge a branch that was lingering around for a while; makes clone work and adjusts code to changes in libGitWrap.