Refactored forked sergeyzh's repo for universal

configuration service.