Disagg

A preliminary step to implement https://bugs.launchpad.net/oq-engine/+bug/1242576.
The tests pass: https://ci.openquake.org/job/zdevel_oq-engine/320/