Docker 1.2 Workaround

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