WL#5675: Make a replication library for 5.6 that can be linked to 5.5

Affects: Server-Prototype Only   —   Status: On-Hold

This is a step to modularize replication.

The goal is to create an interface between the core server ("core") and the 
replication library ("rpl-lib") that is identical in 5.5 and 5.6, such that the 
5.6 rpl-lib can be linked to the 5.5 core. Hence, the interface has to be 
flexible enough that it can handle both the 5.5 rpl-lib and the 5.6 rpl-lib.

In this worklog, it suffices to make 5.6 rpl-lib link statically to 5.5 core. It 
is not a goal to make replication a plugin; that will be done in future worklogs.

It is an open question whether the 5.6 rpl-lib for 5.5 core should be compiled 
with 5.6 core headers or with 5.5 core headers. We will do whatever turns out to 
be easiest.