Allow result files be saved to hdf5/pickle
Following bilby!925 (merged), we should allow the result files to be saved to pickle/hdf format.
I tried this for a run and there are a bunch of places where the result files are assumed to be in json format.