Minor simplification of the hazard_getter query
Merge branch 'master' of github.com:gem/oq-engine into simplify_hazard_getter_query
Changed the generation of hazard_curves to use the gmf_agg table
Added a forgotten ON DELETE CASCADE on gmf_agg
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
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