Add a facility to import hazard_curves from XML files

This is step 2 of https://bugs.launchpad.net/oq-nrmllib/+bug/1175452

The step 3 is to add a switch to bin/openquake (not done yet)