Adding data attributes to terms that appear in the facet widget

Also added `public` to things.