pgsql: Fixed reconnect behaviour, fixed textqueries, eliminated one race.

All issues eliminated.  I will run it in production servers as of now.
ZXID: Changed arguments to authenticate().

Recent versions of the zxid library have an extra parameter "uri_path"
that they want from the request. To avoid needing to pass this argument
via enviroment variables, we now use some lower level functions.

Fixes "null or empty cgi->uri_path=(null) qs(...) programming error".
ZXID: Added configuration option "IPPORT".
ZXID: Added version().
Moved deprecated methods to compat.
Moved deprecated methods to compat.
Moved deprecated methods to compat.
Moved deprecated methods to compat.
Move deprecated code to compat. The compat resolver is broken, so this doesn't actually work.
Move deprecated code to compat. The compat resolver is broken, so this doesn't actually work.
Move deprecated code to compat. The compat resolver is broken, so this doesn't actually work.
Move deprecated code to compat. The compat resolver is broken, so this doesn't actually work.
push_integer() -> push_int().
Move deprecated code to compat. Something is wrong with the method overloading / variant, so generate_key compat is disabled.
Move deprecated code to compat. The compat resolver is broken, so this doesn't actually work.
Compiler: Fixed NULL-deref.

Fixes [LysLysKOM 21034222].
Use non-deprecated APIs
Move deprecated code to compat. The compat resolver is broken, so this doesn't actually work.
Robustness against compat without default module.
Compiler: Fixed the NULL-deref some more.