Docker1 2

Workaround the docker 1.2 issue with `transfer-encoding:chunked`

Also include an improved test used while correcting this issue.

Resolve jenkinsci/docker-plugin#90