Engineers are miniaturizing pharmaceutical production in the hope of making it portable and inexpensive.