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

migrate from OC_Preferences to DI config object