Decouple the source model logic tree from the gsim logic tree

This refactoring makes it possible to generate SES without needing the gsim logic tree, as requested in https://bugs.launchpad.net/oq-engine/+bug/1248237

Tests are running on http://ci.openquake.org/job/zdevel_oq-engine/207