By freeze-drying cell guts, scientists have created portable drug-making plants—and sensors for detecting viruses