Django 1.5 Custom User Model compatibility

Includes:
- Changes from #43
- Fixes for South migration issues when migrating from scratch (and using a custom user model). Similar to https://github.com/lukaszb/django-guardian/pull/116/files