Adds document hit counting and popularity search

This contains a script for parsing varnish logs to postgresql, sql functions for grabbing statistics from the hits data and logic for factoring hits rank (or popularity) into search.

This implementation has one major difference over the legacy implementation, that I only just discovered. In legacy, the hits data is by document at any version. Here we are tracking the data by document at a specific version. This could be wrong?