TEZ-1701. ATS fixes to flush all history events and also using batching. (hitesh)
TEZ-1716. Additional ATS data for UI. (hitesh)