move some deprecated usage of OC_Config and OC_AppConfig to \OC::server