ReplicatedPG,ReplicatedBackend: move message handlers

Signed-off-by: Samuel Just <sam.just@inktank.com>