Moved modules to manage sources and logic trees from the engine

See https://bugs.launchpad.net/oq-engine/+bug/1294601