Decouple community and IDM core and service modules
This MR moves some files that are only required for a legacy controller to their own (tiny) modules, to avoid re-compilation in certain cases. Those can just be removed again when the legacy controller functionality is refactored.