There's a unified build of cm14 so you may want to use that as a base to build off of seeing as it's fairly stable and will save you alot of time rather than starting from scratch. Also, SaintZ93 is building Emotion for Nougat which may help you as well! Let me know if you need a tester!
/* * Your warranty is now void. * * We are not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about features included in this ROM * before flashing it! YOU are choosing to make these modifications, and if * you point the finger at us for messing up your device, we will laugh at you. * */