Add proper bash completion for "docker push"
Fix some error cases where a HTTP body might not be closed

Refs #2126
Merge pull request #1956 from tianon/bash-completion

Add proper bash completion for "docker push"
Merge pull request #2127 from titanous/close-body

Fix some error cases where a HTTP body might not be closed