Utility functions for Django 1.5 Custom User Model compatibility.
Fix migrations taking into consideration Django 1.5 Custom User Model capabilities.

Also fixes broken Device <-> User M2M relationships when using a custom
user model having any name other than 'User'.
Merge pull request #1 from deepakprakash/south_migration_fixes

South migration fixes