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
Please add a couple of comments to explain why also the slow version is required