libqtprofilesetup: Move module list generation into dedicated functions.

Makes it easier to see what is actually going on in the createModules()
function.

Change-Id: I9a81140df4796084e9c2ff74c192b271ee5139eb
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>