Restored the source model sampling feature

See https://bugs.launchpad.net/oq-engine/+bug/1312020

Tests running here: https://ci.openquake.org/job/zdevel_oq-engine/387