Initial import.

Only templates for now. This is based on some code from 2013 and adds a
proper build system and tests.