WL#5812: Add server interfaces for functionality used by replication

Affects: Server-Prototype Only   —   Status: 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 add interfaces to core for all functionality that rpl-lib 
needs.

This is a top-WL. In this WL, we list the members of classes defined by core and 
used by rpl-lib. We will create several sub-WLs that handles each member (or group 
of members) individually.

We can resolve each member in three possible ways:
 - refactor rpl-lib so that we do not need to access the field
 - in core, add a wrapper for the field (if the field belongs to core)
 - move the field to THD::thd_rpl (if the field belongs to rpl-lib)