refactor flask app, removing static files, and misc.
added better comments to nginx-v2 conf