add in some transaction middleware (bgu 875319) (bug 875319)

haven't been able to test locally yet due to ES bustage