Improve cookbook search ranking

Only use trigram search for cookbook names add tie breaker when ranks
are the same rank primarily by :trigram giving greater precedence to
cookbook names. Also fixes a broken search spec that wasn't testing the
correct thing.
Merge pull request #690 from opscode/improve-cookbook-search

Improve cookbook search ranking