updating flaskapp boilerplate with better configuration handling and management