Microbes that can survive harsh conditions by forming tough spores — some are heroes in fermentation, others spoilage foes.