Unified the export framework for hazard and risk

See https://bugs.launchpad.net/oq-engine/+bug/1204955. The tests are running here: https://ci.openquake.org/job/zdevel_oq-engine/835

This has impact on the platform calculate tab, since the URLs have changed.