Improved the IMT management in the engine by leveraging the new functionality in hazardlib

This is the companion to https://github.com/gem/oq-hazardlib/pull/146

Tests running on http://ci.openquake.org/job/zdevel_oq-engine/204