After two years of bureaucratic hurdles, the first study to directly compare cannabis with an opioid drug is about to begin.