replace all occurences of OC_Preferences in core

* replace by call to the DI container