Add support for Passive Replication

Signed-off-by: Diego Didona <didona@gsd.inesc-id.pt>