value of __name__ is set to __main__ when -c parameter is used

fixed cp35322
relaxed ctype DWORD argument conversion to accept negative values

fixed cp35326
fixed windows detection in pip/log and colorama
added formal test for cp35326
added partial support for gzip header and header autodetection
implemented gzip header state machine
simplified gzip header removal