Changes to support gunicorn and nginx