Some bits to centralize import logic in HDF5

and deal with weired cases of our own history.