Btw., I have a similar project (with a much smaller scope) at https://github.com/codenhagen/startflaskproject.