Allow for custom User model

Django 1.5+ allows custom user models, so we should take that into
account as well.