WIP on logging email script

(and some other random changes)
Merge branch 'stable' of github.com:joelhaasnoot/better-django-helpdesk into stable