Major updates to config module

Removed all deprecated usage of config module
New config set function
Generate default values on the fly if a setting doesn't exist (during upgrades)
Simplified the option dialog