Added support for reading and writing directly to compressed formats: .zip, .tgz, .gz, Cleanups