Accept an http URL as a repository location

This is also weak, as it won't work for GitHub Enterprise (the host won't be `github.com`.

I think you probably want to use the `urlparse` module to handle the URLs properly, and just use the last 2 path components.