Add a matchesParent method to Matcher.

This new method is the complement to matches in that it tells you if the given path matches any section of the pattern. Also added a MatchesParentVisitor to provide the implementation for this new functionality.
Having said all that the comment is not that clear, though I don't know how to word it to make it clearer.