Improve TM suggestions display

* Sort suggestions server-side with the better ones first.
* Display the suggestions in the order in which they come.
* Make less jQuery DOM searches.

Change-Id: Ib47bc9870714c4cce7500135fe0babf2b8579cee
Merge "Improve TM suggestions display"