More robust URL parsing.

* Push project_params down into RemoteServer classes.
* Support HTTPS stash URLs.
* Raise a proper error for invalid Github URLs.