Fix port setting with gunicorn. Add log directives to api program