Django 1.5 compatibility, and performance setting

Includes support for customizable User models
Performance setting will disable expensive permission checks if those are not needed.