core: Add config file based service locator class.