Cluster applications according to relevancy of the match when searching and if multiple applications fall into the same cluster sort them according to frequency of use.. Fixes: https://bugs.launchpad.net/bugs/871900. Approved by Mikkel Kamstrup Erlandsen.