Added a close method to DockerClient

Give programs using DockerClient an opportunity to release resources claimed
by the http client created inside DockerClient.