Update event based mean/quantile loss curve computation

Addresses https://bugs.launchpad.net/oq-engine/+bug/1168454

Requires https://github.com/gem/oq-risklib/pull/52/

I have also removed a bunch of unused (and obsolete) code.