More robust URL parsing.

* Support HTTPS stash URLs. (Motivation for PR.)
* Push `project_params` down into RemoteServer classes.
* Raise a proper error for invalid Github URLs.

@jkingdon