Med: pgsql: Support for non-standard port and library locations

pgsql Resource Agent does not account for custom lib locations and
custom ports, making it impossible to use with some Postgres
installations.

Both of these customizable Postgres installation options are typically
controlled by simple environment variables, making them easy to
parametrize as
part of the Resource Agent (LD_LIBRARY_PATH and PG_PORT, respectively).