Improved api-main
Removed dependency of AppLogging from AppDetection.

Now AppLogging can work without AppDetection
AppDetection is only injected in AppLogging if the module is present