After eight months on the job, Bradley Gayton, an outspoken diversity advocate, has resigned as the general counsel for the Coca-Cola Co.