Make the extension more Hack-friendly

Changes the API slightly to be more hack-friendly by changing the functions
that returned false on error to returning null on error. This allows the
functions to be annotated as nullable types in most cases, instead of mixed.

Also adds an interface file.
Add a HACK_FRIENDLY compile-time switch
Update pgsql.hhi and document HACK_FRIENDLY option in the README