Adding and cleaning up logging code, and modifying urls.py so it doesn't import *, and doesn't give deprecation warnings.