WL#7672: Client interface for reading the replication stream

Affects: Server-8.0   —   Status: Complete

Extend libmysql's C API with a stable interface for getting
replication events from the server as a stream of packets.

We need this to avoid having to call undocumented APIs and package internal
header files in order to implement binlog based programs like the MySQL Applier
for Hadoop.