API: Add pgm_is_child() and pgm_is_parent().

This patch adds two new APIs to PGM: pgm_is_child()
and pgm_is_parent() for convenience to the programmer.
These functions can already be supported by a combination
of other PGM API calls, but it is troublesome for such
a simple query.