Scenario Aggregated Loss

Port the aggregate loss back from the legacy branch. Output it to CSV format as requested by users.

For a clean diff, https://github.com/gem/oq-engine/pull/1049 should be merged first