WL#6128: Session Tracker: Add GTIDs context to the OK packet

Affects: Server-5.7   —   Status: Complete

MOTIVATION
==========

As part of the framework to implement several degrees of session
consistency over a farm of MySQL servers, one needs to put in the OK
packet session state. This information must provide input for that the
connector (or middleware) to act and make sure it provides the correct
consistency level to the application, when routing queries to
different servers. For example, putting GTIDs in the OK packet may
help the connector to track dependencies between transactions and
state database transitions, by comparing GTID state on different
servers and the GTID information it holds.

OBJECTIVE
=========

Therefore, this worklog adds a tracker, to the response packet of the
MySQL protocol, to be able to pass to the connector information about
the session state collected that shall be used to implement session
consistency.

In this worklog, we will be taking, packing and sending the data
provided by WL#6972, i.e., a set of GTIDs.

SCOPE
=====

This worklog implements only the tracker. The part that changes the
server and replication layer to collect the necessary data is designed
and implemented on WL#6972.