Add postgres_get_port to determine available port for Postgres node

This will be used before kicking postgres_node_init to get a correct port
number for a new node of the cluster.