Rewrite all config related things to use new Settings class (config is now json)