Cleanup URL parsing and support remote Docker API endpoints

Isn't the Docker API HTTP?  Should we be supporting http: and https: URLs as well?