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

migrate from OC_Preferences to DI config object