Support same URL schemes as Docker

Fixes #166 

@bfirsh @mpetazzoni I think I'm accounting for all the current [and future](https://github.com/dotcloud/docker-py/pull/250) use cases with this, but please review and let me know if I missed something.