Cleanup URL parsing and support remote Docker API endpoints

Weird!  Does it do its own SSL?