Moved templates into HTML with generation scripts and a makefile