In their roughly 3.5 billion years on Earth, bacteria have fine-tuned the art of colonizing all kinds of habitats, from the inner lining of digestive tracts to the blistering hot waters of geysers.