A new study has shown how cannabis could be an effective treatment option for both pain relief and insomnia, for those looking to avoid prescription and over the counter pain and sleep medications — including opioids.