Drop support for Django 1.3.

Move to Django 1.4+ file layout, remove any old-Django workarounds,
tidy up settings.