MW WLD prefix compatibility fix

Bug: 56220

currently need more test.

some special pages are not yet included.
tested on MYSQL db only.

notes:
all databases accessed using query needs the mediawiki prefix $wgDBprefix.
meaning select, selectField and others append it automatically.
$wgDBprefix is NEEDED @ the LocalSettings.php. Without it, error messages
may appear.

Need testing. Any volunteer?

Patch 2:
1. fix some index compatibility issues for OmegaWiki database
2. tested Special Page ExportTSV. Note: it is possible that using this
when too many data is included (or slow server) might get the exceed
30 sec alert at the end of the TSV generated.
3. added compatibility with Special page ImportTSV and datasearch (not
completely tested).

Patch 3:
1. added install compatibility with prefix with an extra underscore.
2. added future doxygen documentation markings for both WikiDataAPI.php
and install.php

Patch 5: = patch 3.
There was nothing new in patch 4 - which just deleted patch 3
or did I miss something?

Patch 6:
1. fixed patch 3 prefix bug.
2. Catch error for installing the same dataset.
3. fixed freshInstall that I broke.

Patch 7:
AddShore merge "Document Generator"

Patch 8:
Rebase and used db select for Special Page Import TSV.

Patch 9:
Rewritten a few more queries with db select.
I am struggling with SpecialSuggest.php, we might leave it alone for now.

Patch 10:
Rechecked Special Pages, added documentation and used db select for
special page Import TSV (patch 8's changes in this respect was not
commited).

Patch 11:
converted some query() function to select() at Special page for suggest.
and some followup documentation for Import TSV.

Patch 12:
I forgot that Special suggest has a separate patch so I checkout it to
Patch 10 version.

I think the bug is too big for this. So I think we must consider this a
partial bug fix and convert query() functions to select() functions in
future commits. This being an ongoing bug fix for this.  Kindly
check for errors, if none, then commit to master. Thanks.

Change-Id: I65b98d5da33a605df4f02fbe52be4f7fa815c469
Merge "MW WLD prefix compatibility fix"