client: rename isValid to parseEndpoint

Instead of just checking whether the endpoint is valid or not, it parses
the endpoint and returns a net.URL "instance", or an error.
client: import hijack from dotcloud/docker

With some changes.