Added support for custom user models (closes #7)