Loss per event per asset

Minimal changes to support the feature. See https://bugs.launchpad.net/oq-engine/+bug/1383291
The real meat is in the engine. The tests are green: https://ci.openquake.org/job/zdevel_oq-commonlib/153/
Is it desired that this returns True also in case sites_disagg is not defined?