Added facet support to the percolate api.

Relates #3851