fix clone operation

This one fixes several issues with the clone operation:

- [x] The files were not checked out after a repository was cloned.
- [x] It is possible now to create a local bare clone of a repository.
- [ ] Checkout progress is not reported to the API