Setting up build based on i-d-template

I've copied some of the code in from https://github.com/martinthomson/i-d-template.git