An object of the class is returned as an auto_ptr to simplify memory management.
generate_master_gtid_wait_cmd() is now a method of the Gtid-class.