Added support for nginx+uwsgi deployments
Fixed basestate url