From Photosynthesis To Detoxification: Microbial Metabolisms Shape Earth’S Surface Chemistry