several postgres-replication fixes/improvements 

- added several config options: master host, slave host, database name, user, password, ssl