Convert OC_Appconfig to object interface

@kabum @butonic @bantu @DeepDiver1975