Support for swappable User model in Django 1.5

This doesn't do anything about migrations for existing installation (which I don't think is possible, since you don't know what they have migrated to), but allows new installations to work correctly with Django 1.5 and a swapped out User model.

Should be completely backwards compatible.

Thanks!