Fix whitespace
Refactor the executeConfigComponents method.

After adding the hook handling it had become way too ugly.

It still needs some love, but at least we have gained some readability.
Receive the hooks as arguments to executeConfig...
Adapt ncm-ncd to passing hooks as parameters and not in the state
Document the hook parameters