Merge pull request #1533 from gem/simplify_scenario_damage_case_4

Simplified the QA test scenario_damage/case_4
Merge pull request #1534 from gem/simplify_scenario_damage_case_4

The intensity measure types are now sorted also in the scenario calculator
Insert the IMT in the db, if not already there
Merge pull request #1535 from gem/insert-imt

Insert the IMT in the db, if not already there
Merge branch 'master' of github.com:gem/oq-engine into simplify-hc-rc
Formatting change