WSGI middleware:  commit / abort transactions