Opioid overdoses proliferate, like a disease. A new app lets health and law-enforcement officials anticipate their spread.