Modifications to allow running the application using gunicorn and nginx