use templates in KWS result presentation; minor code fixes
improvements to levenshtein distance (todo: CMSsynonyms like lumi-luminosity); shorten long values in query suggestions; other minor improvements