Parse a github repo url into an object of repo information and switch to several types of clone URL.