Add support for Content-Encoding: gzip

When the server is serving compressed files, this class is not going to work as the HTML code retrieved will be gzip-encoded.
I've added the code for a possible solution. It checks the Content-Encoding header, if gzip decompresses the HTML code before the changes and compresses it again before sending.
I don't know if it's the best solution but has worked for me...