Use a ServiceFactory for the embedded LogService
Test embedded services. Fix ModuleContext.getService() recursion issue.