Replication pg user

This is #121 rebased on top of the latest master.