compress() method refactoring

merge http request accept-encoding tests, testing longer match first...
exclude invalid gzencode compression levels ( if ($this->level) evaluates to TRUE for negative values and -1 is an acceptable=zlib-default compression value for gzencode).