updates due to the latest risklib api changes

Changes required by https://github.com/gem/oq-risklib/pull/35

It also fixes a bug related to the insured losses. They were calculated but not saved. Instead the asset loss curves were saved instead of them.

For clean diff, https://github.com/gem/oq-engine/pull/1048 should be merged first