Added support for custom user model

Without this you may have some issues using django 1.5 custom user.