webserver: add score to web templates in debug mode (#305)
With this change we display scores for files and matches on the search
results page. The behavior can be toggled by adding &debug=1 to
the URL.
The debug info is not part of the JSON API and is only used for
template evaluation.