Dump and restore Stochastic Event Set

Addresses https://bugs.launchpad.net/oq-engine/+bug/1247665

For a clean diff, https://github.com/gem/oq-engine/pull/1298/ should land first