Multiple hazard output

Addresses https://bugs.launchpad.net/openquake/+bug/1101267

For a clean diff https://github.com/gem/oq-engine/pull/1017 should land first