Normalize all config access into core functions

* check-config
* read-config-value
* write-config-value
* delete-config-value

This is step one to getting config refactored.