Move port selection from scheduler/module manager to configuration.
Define framework for different types of modules.
Clarify scheduling of different types of tasks.