Scientists have created a light-controlled opioid that can be turned on and off with light. It may relieve pain without causing addiction or side effects.