libpq: Add PQping enum and functions

Fixes bug 722878