Enable django TransactionMiddleware for everything (bug 1076949)

There is little reason to have it only for the API, it's useful
everywhere. Nested transactions should work, so we shouldn't need
to do any other modifications (hopefully).
Merge pull request #2639 from diox/use-transaction-middleware

Enable django TransactionMiddleware for everything (bug 1076949)