reduce OC_Preferences and OC_Config usage

* files_encryption
* files_versions
* files_trashbin
* tests
* status.php
* core