For centuries opiates have brought relief to people in severe pain. But the relief came with consequences. Now researchers are engineering an alternative to morphine.