Hazard curves from gmfs

Here is a drastic improvement to the GMF -> hazard curve conversion, https://bugs.launchpad.net/oq-engine/+bug/1324774. Tests are running here: https://ci2.openquake.org/job/zdevel_oq-engine/431
Please, add `result` in the method description.