reduce OC_Preferences, OC_Config  and \OCP\Config usage

* files_encryption
* files_versions
* files_trashbin
* tests
* status.php
* core
* server container
drop unused isDebugMode and setDebugMode of OC_Config