Allow JSON output of facet results
cleanup
output facet results
cleanup layout