If the url to the repo has a colon in it, remove it.

- Also separate out constructor functionality into its own method in
  git.py