Ok this worked, I've been able to boot to the home screen but now play store and play services crash repeatedly so I am unable to use the device.I don't know why the setup wizard crashes - i had the same problem - but you can delete the wizard and skip the problems.
In TWRP mount system. Then go to system/priv-app and delete settingwizard.apk
When booting into Android you just go to the settings and add you account.
That is what i did last week - and it worked.
A few days later i flashed Dirty Unicons ROM and Banks gapps.
No problems with crashing setup wizard.
---------- Post added at 06:55 PM ---------- Previous post was at 06:54 PM ----------
Tried this, it doesn't work, I just get the same issue.CM comes with an integrated root.
Flash latest vendor.img from stock Android.
Flash TWRP.
From within TWRP: Reset, flash cm followed by opengapps or whatever.