Scenario insured losses

Port back the scenario insured losses computation from the legacy branch.

QA tests pass with the same results.

It requires https://github.com/gem/oq-risklib/pull/36 

In order to have a clean diff, https://github.com/gem/oq-engine/pull/1043 should be merged first.