Added support for gzipped responses in IO.request and fixed the /stat command