Implement distribution by SES in the event based hazard calculator

See https://bugs.launchpad.net/openquake/+bug/1040141. This has become essential in order to run the Bosphorus computations in a reasonable amount of time. All tests pass, see  http://ci.openquake.org/job/z_oq-engine_template/1/testReport/?