Support solr field collapsing/result grouping

fixes #577
rewrite document counter logic into a helper (fixes #597)
gitignore the solrmarc log files
Merge pull request #602 from projectblacklight/solr-field-collapsing

Support solr field collapsing/result grouping