Fix tests that vary urls.py

Create a mixin class that can be used for tests that customize urls.py
to force django to reload it, so that they don't break other tests.

@jzoldak: Review?