Copy marketplace gateway to base gem as external services gateway

Change-Id: Idc38d0ccd10ba1924755741387d72fe21ed7210d