Reworked to trim down the code size of sketches using HttpClient
Added sending "Connection: close" header to fix hang when talking to some servers (first spotted with Xively's servers)