Big refactoring to include template engine
Two-stage generation

Added intermediate stage in generation for template to operate on.
Keeps JSON and HTML clean of conditional cocode
Reorg generator code to keep flask app code clean
Merge pull request #11 from NoodleEducation/templating

Templating