Average Losses

Addresses https://bugs.launchpad.net/openquake/+bug/1152237

Requires https://github.com/gem/oq-risklib/pull/39 and https://github.com/gem/oq-nrmllib/pull/79