Implement attach_websocket() for attaching with WebSockets instead of HTTP streaming
Move creation of websocket connection to its own method, so subclasses can override
Support https:// URLs (replacing with wss://) when attaching websocket
Add events endpoint to the Client

 This is a bit of a hack; I added a method (and did a slight refactor of
 the old one) to handle getting the raw socket from the requests
 request. If the attach_sockets method isn't public, I'd suggest
 removing it entirely for a slightly more general one.

 This also needs some attention paid to validating legnth, and properly
 parsing the returned data by using the length.

Signed-off-by: Paul Tagliamonte <tag@pault.ag>
Use websockets by passing 'ws' param to attach_socket
Support naming containers when creating them

Add support for passing in the name parameter to the call to
/containers/create to name the created container (API v1.6 feature).

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Add integration test for named container creation

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Don't fail loading the configuration when .dockercfg doesn't exist

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Fixed lxc_conf param in Client.start to accept dict configurations. Fixes #84
Merge branch 'attach-websocket' of github.com:aanand/docker-py into aanand-attach-websocket

Conflicts:
	docker/client.py
Don't import websocket-client if environment is python 3 (not supported)
Merge branch 'named-container-create' of github.com:mpetazzoni/docker-py into mpetazzoni-named-container-create
Added unit test for named containers
pull, push, build are streamable
Merged + events should support JSON data of any size
Merge branch 'auth-load-config-fix' of github.com:mpetazzoni/docker-py into mpetazzoni-auth-load-config-fix
assertIn not supported in py26
Avoid an additional level of indentation
pull, push, build are streamable
Allow for configurable timeout on all client requests

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>