Hdf5 rework rebase

rebased version of: https://github.com/twdb/hydropick/pull/56