Support JSON marshal/unmarshal of GTIDField.
Refactor binlog package for GTID support.