Derive Encodable, Decodable for Config

Should make it easier to automatically serialize it to a config file.