Major revamp of hist_data to use Pandas data structures and HDF5 storage. Simplified code,  improved speed and flexibility.