drop OC_Preferences::getUsers and getApps

Extracted from #12268 

cc @LukasReschke @DeepDiver1975 @PVince81 @nickvergessen

Or should we keep the old methods and call the methods from the new config object?