Changes for Django < 1.5 compatibilty

Migrations and models now import the User model in a way that works for
older versions of Django.