Fix Cite restoration for current Cite extension

The field `mInCnt` was removed in Iee94917f3f. Instead restore the call
counter `mCallCnt` which was added in March 2011.

Change-Id: Id9dca85fda059195ba628f5c11ed6fd2d06ab1fa
Don't use $wgTitle when the parser can give us one

Simplify equality check for titles while we're here

Change-Id: I5eb0c1fac41cb4b3dc40c364a86b244dd96cb220
Remove commented $wgArticle usages

Change-Id: I9c649bce867208e326196e4bd10837a35a11453d
Use wfMkdirParents() and wfRecursiveRemoveDir() rather than DIY

Change-Id: I5dfa31a9aa071fdfe28d3a20a5f71adcf3ebcc7f
Remove commented calls to transformMsg()

They were removed on purpose in 0fb8eed5 (r115677), see changelog.

Change-Id: Iabdaff972c643876754503b5099dc95bed669b0c
Call Linker methods statically

Change-Id: Ie968e6645b423899ffee0f5e0d5d85c3486b9070
Migrate to JSON i18n

Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: I34db02b5e00a4f8debc092d3927f07f16bf45e6c
Add $wgMessagesDirs

This was missed during the JSON i18n migration.

Change-Id: I98b514cd8c602d01fdb943cd79ad3fec19d19687
Remove zh-[cn|tw] in favour of zh-han[s|t]

Change-Id: I74c3cfb38b4e6c50f52708d78a2000e117f2beec