Added data processing logic.

Moving data processing logic from Solr/Results.php into the visual facets template.