Minor simplification of the hazard_getter query
Merge branch 'master' of github.com:gem/oq-engine into simplify_hazard_getter_query
export/hazard:

Include "-poe_N.N-" in filenames for UHS and hazard maps.
tests/export/hazard_test:

Updated export path tests to include poes for hazard maps and UHS.
Changed the generation of hazard_curves to use the gmf_agg table
update mean loss curve computation
Added a forgotten ON DELETE CASCADE on gmf_agg
create a suitable fixture for CreateRiskCalculationTestCase.
Merge pull request #1145 from matley/eb-fixes

Mean loss curve computation updated
Merge pull request #1146 from gem/1170637

Add a forgotten constrain ON DELETE CASCADE on the table gmf_agg
Merge pull request #1144 from gem/event_based_post_processing

Changed the generation of hazard_curves to use the gmf_agg table
Merged from master
Simplified the hazard getter query
Performed the filtering on the assets, not the GMFs
Added a comment on Scenario hazard getters
db/schema/openquake.sql, engine:

Removed mentions of input reuse on some comments.

This functionality was recently removed.
calcs/hazard/general:

Removed some (obsolete) input reuse logic from `initialize_sources`.
Improved profiling (calc time vs save time)
Merge pull request #1147 from gem/simplify_hazard_getter_query

Simplify hazard getter query
fixed ported from hope, applied