Bug 920067: Enable the database.

* Add sqlite config to base settings.
* Update tests to use Django's database aware TestCase.
* Install south.
* Install django-waffle.
* Update jenkins to use the database for CI.

Django admin will be enabled in a separate PR.
Add support for RO slave DBs.
Enable DB management in deployment scripts.