Remove usage of legacy OC_Appconfig

Use the new public AppConfig interface instead

cc @karlitschek @DeepDiver1975