rewrite dynamic dynesty
This is an attempt to make dynamic dynesty work with the customisations to the serial version.
I think I avoided making any substantive changes to the serial implementation. The dynamic version is still a little clunky, but checkpoints and resumes properly and works with the pool.