add in support for creating a flask / angular app; simplify code organization in generate.py