quick fix for AttributeError at admin urls

My previous changes introduced an AttributeError at /admin, so here's a fix. 

Meanwhile I switched to using threadlocals and added ip and path to LogEntry to better suit my needs. This is on the branch https://github.com/vfigueiro/django-auditlog/tree/threadlocals