Generalize cache -> HDF5 script

Took out hardcoded directory and output file names and turned them into command line arguments. Also added command line options for enabling compression via HDF5. An example call:

```bash
cache_to_hdf5.py path/to/directory/ output.h5 --complib=zlib --complevel=9
```