Support for the simplification of the risk calculators

See https://bugs.launchpad.net/oq-engine/+bug/1376157. Requires https://github.com/gem/oq-risklib/pull/79
The tests are green: https://ci.openquake.org/job/zdevel_oq-commonlib/155
Is this section useful? If this is ignored, we might remove it