Fragility model using structure dependent IMT

This pull request addresses https://bugs.launchpad.net/openquake/+bug/1154549

It requires https://github.com/gem/oq-risklib/pull/43 and https://github.com/gem/oq-nrmllib/pull/82