Added an config provider and gateway factory class.