Cleanup URL parsing and support remote Docker API endpoints
Properly use endpoint in driver url advertisement