Revert "drop unused OC_Preferences::getValueForUsers"

This reverts commit a506d05e3e859e3b3942a63c96d707e0b9937cc7.
Refactoring of OC_Preferences to AllConfig

* keep old static methods - mapped to new ones and deprecated
* removed deleteApp because it is unused