Use the Django 1.6 transaction management.

In Django 1.6, transaction management changed, and commit_on_success
is now deprecated:

https://docs.djangoproject.com/en/dev/releases/1.6/#new-transaction-management-model

Replace our use of commit_on_success with atomic, and pin Django
to a version that works.