Added an abstract gateway config class.