Add common service locator

Common service locator implementation.