cli: streaming: negotiate a transport encoding, if one isn't provided

In the case of XenServer HTTP PUT, we can tell from the HTTP response
header that 'chunked' is a valid encoding. Otherwise we PUT as a raw
image.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>