trying to isolate all interactions with PG/ReplicatedPG thru IPG

Signed-off-by: Loic Dachary <loic@dachary.org>