ref(Config): use a config class to represent config.