Transaction id in treq logs (ready for review)

Including the log context everywhere would have made the previous PR super long, so do it here.
The log parameter is added at the end, as an optional parameter, so as to break as few existing tests as possible.

Auth still doesn't have any log contexts - will handle that in an other PR