[facets] factorize table filter form / facets box generation, moving out filter form from the table view so it's usable from other views. Closes #1794009
sql('DROP FUNCTION IF EXISTS _fsopen(bytea)')sql('DROP FUNCTION IF EXISTS fspath(bigint, text, text)')