Minor changes to allow this server to be started from django's manage.py