Fix signature sorting of common prefix keys.

The AwzHeaders need to be sorted by key, not
key+value.
configurable http client
always close the response body
don't hold on to unneeded buffers