initial work towards new search
return initial query and facets
move the search js to templates
fix faceting using the polymorphic tools