Fixed malformatted request when using empty list in create_container()

create_container() sends a malformatted request when volumes==[] or
ports==[], causing error 500 "create: ExportEnv json: cannot unmarshal
array into Go value of type map"

The empty lists must be converted into a dict (or removed)
Merge pull request #158 from a-ba/master

Fixed malformatted request when using empty list in create_container()
Support remote API v1.8 (and make it the default)

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Merge pull request #161 from mpetazzoni/api-1.8

Support remote API v1.8 (and make it the default)
Fix APIError for requests 1.1

requests 1.1, which is what's available on CentOS 6, doesn't support
passing the response code as a keyword argument.  It can be set after
the fact on both requests 1.1 and 1.2.

Docker-DCO-1.1-Signed-off-by: Chris St. Pierre <chris.a.st.pierre@gmail.com> (github: stpierre)
Merge pull request #165 from stpierre/fix-http-error

Fix APIError for requests 1.1
Updated integration tests
Clarify port bindings documentation for non-TCP port bindings

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Fix build() streaming and stream methods cleanup

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Fix events() streaming by using _stream_helper()

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Merge pull request #167 from mpetazzoni/build-output

Fix build() and events() streaming
Updated changelog, bumped version to 0.3.0
Added installation instructions
add __title__ and __version__ variables to module
Merge pull request #168 from joshuaconner/add_version_title_flag

add __title__ and __version__ variables to module
closes #169
Merge pull request #170 from cglewis/fixes_169

Fix install instructions (closes #169)
Support 'Domainname' in container creation
Python 3 fixes
Styling as per comment, decode to utf-8, join rather concat strings