migrate from OC_Preferences to DI config object
Merge pull request #1986 from owncloud/drop-oc_preferences

migrate from OC_Preferences to DI config object