Fixing bug with JSON logging, adding global transaction ids

@jdoconnor @kevinreedy