Config cleanup - OC_Preferences refactoring

cc @icewind1991 @DeepDiver1975 @PVince81 @LukasReschke 

 * [x] removal of all OC_Preferences references in core and apps  I find in this github org.
Missing type annotations