compiling templates to reduce files to be deployed

and to be able to override default templates with app specific templates fixes https://github.com/OpenSourceFieldlinguistics/FieldDB/issues/1573