Add override_settings backport in order to support Django 1.3 in tests.

Added a backported version of `override_settings` for Django 1.3

In fact we could strip out contextmanager and decorator support (methods `__enter__`, `__exit__`, `__call__`), but I suppose we should follow Django's `override_settings` interface as close as possible.