Merge pull request #7 from nicorevin/master

Use with statement for GzipFile and werkzeug to calculate response length
Support for python 2.6

It's still popular https://gist.github.com/dstufft/10630936,
backporting GzipFile's enter and exit
BytesIO fits all testcases, StringIO is unneeded.
Update tests