Marijuana legalization pending in three states this fall could turn the drug into a serious cash crop and a tax windfall.