Django 1.7

Fixed django-categories so it works under Django 1.7. I fixed the tests so they run under Django 1.7 as well, but I have no idea if they will work under older versions of Django.