added support for custom user model

This pull request adds support for django 1.5 custom user models