Cannot install Ubuntu 16.04 on Dell XPS 9550 -- grub-install /dev/nvme failed

After hours of pain this is my solution to getting this working. Hope it's useful http://www.rationaljava.com/2016/10/dell-xps13-dual-boot-windows-10-with.html