Updated Flask App

Added "server" flag so flask app will be able to start appropriate
python threads.