Microbes are used for everything from baking to brewing, but wastewater treatment is where they do some of their most important work.