Add Django 1.5 Custom User Model support with fallback for older versions