Django visitor - copied from https://bitbucket.org/jesseh/django-visitor/src