replace all static calls to OC_Config and OC_Preferences to calls to OCP...

...\IConfig

I tried to move as much as possible to prepare the refactoring.

ref #12260

cc @DeepDiver1975 @Raydiation @LukasReschke @PVince81 
While at it replace " with '?