Added facet support to the percolate api.
Closes #3851
Fix markup