Add support for PQescapeLiteral and PQescapeIdentifier. Also add JS versions of the functions.