Added on-the-fly unzip

If a file is gzipped (has a .gz extension) and you try to read it
omitting the .gz, it will get gunzipped on the fly. Note that this is at
least 3x slower than gunzipping using the command line for large files,
but might be convenient for smaller files.
Merge branch 'master' of github.com:cni/nims