Migrate to Django 1.6

These changes make OSQA compatible with Django 1.6. I tested most of the actions and will update the PR if people find issues.