Added facet support to the percolate api.
Closes #3851