WL#5778: Binary log interface

Status: Un-Assigned

This is a step towards making replication a library, such that the 5.6 rpl-lib can 
be plugged into the 5.5 core [WL#5675].

In this worklog, we define an interface for the binary log. We only create a class 
that groups together the functions that the core server needs in order to write to 
the binary log and to execute related SQL commands. The interface will contain all 
functions we need, but the function prototypes will not be in their final form. In 
particular, unstable structs such as THD will be passed as parameters. In future 
worklogs, we will change the function prototypes.