Implement custom containership test

Address issue #388 by implementing a custom path-checker (and supporting functions).  Can't use H5LTpath_valid as it wasn't introduced until HDF5 1.8.9.

The added function is *not* part of the public API, but could be used by h5py.Group in the future as it supports link access property lists.