Special Suggest

Used mediawiki select etc functions, a step to remove query function.
Currently works with relation-type queries.

Patch 2: added transaction query.

Patch 3: used buildLike database function.

Patch 4: added class, dm, syntrans and class-attributes-level queries.

Patch 5: added everything else except for language. Since there is a
pending patch for review for language.php, I will not be able to correct
this at this time (to avoid merge conflict).

This changes a lot of things. I have checked this in edit definedMeaning
mode, and nothing seems broken.

For testing and suggestions. If none, ready for merge. I will create a new
patch for language next week. Thanks!

Bug: 56220
Change-Id: Ie594bbb4cefcafc15267c6fd3f112207c4e27a6b
Merge "Special Suggest"