First take at cloning.

Added CLONE-REPOSITORY method as well as the callbacks and classes necessary for authentication.