Add OpenDirector/build_opener impl, fix bug in GzipReader, add gzip/deflate tests