Avoid API error/header leakage from jobs API

* Also cleaned up some HTTP headers while at it

bug: 62092
Change-Id: Ia2c1643e47aae53916c107c901cca654dc438a16
mediawiki.user: Deprecate #bucket

Rationale:
- On the Wikimedia cluster, it is only used by AFT, which is moribund.
- It's too complicated for what it is.
- Its usage leads to a proliferation of large, persistent cookies that
  degrade site performance.
- If it were rewritten to be simpler, more generic, and cookie-free,
  it would still be an odd fit for the user module.

Change-Id: I5a66e1a4fb60f6c67d1fb5312ccb629bb7964053
Merge "Provide direction hinting in the personal toolbar"
Merge "TableSorter: Fix column order when collecting headers"
Update messages.inc and rebuild MessagesEn.php. Again.

Follow-up Id5c0225431 (7d923a6).

Change-Id: I663c28aa05a42917ba3988a02c2609b6c4e9a438
Merge "SpecialUserlogin: Normalize username before passing to User::newFromName"
Remove final period from api module descriptions

The most description are without a final period, so that looks common.

Change-Id: If72a3cc094cfff436b53948728354cbaeff768c8
Localisation updates from https://translatewiki.net.

Change-Id: I2dd97b0dda0af44be6ad3979d5934554a4d7e31c
Remove another undefined $env and TODO comment for it too

Follow-Up: Ie69a68c8ff429ac79796890d1843cf2a2b9c32e8
Change-Id: I767cb09215f8b51a9e88c770d3b0f87c37452d00
Preferences.php: avoid "Undefined index" if key 'realname' don't exist in $formdata

Added additional check for missing key "realname" in $formData which can cause
an undefined index: realname

Bug: 62029
Change-Id: I6763c12d9b4d8b1e574eb3162168f4f5380df93a
i18n: use double-quotation for consistency

Change-Id: I6f5dd76db9db4467e6535254021d54b5d5f58f78
Make it possible for extensions to specify which version of MediaWiki
they support via Composer.

This change allows extensions to specify they depend on a specific
version or version range of MediaWiki. This is done by adding the
package mediawiki/mediawiki in their composer.json require section.

As MediaWiki itself is not a Composer package and is quite far away
from becoming one, a workaround was needed, which is provided by
this commit.

It works as follows. When "composer install" or "composer update"
is run, a Composer hook is invoked. This hook programmatically
indicates the root package provides MediaWiki, as it indeed does
when extensions are installed into MediaWiki. The package link
of type "provides" includes the MediaWiki version, which is read
from DefaultSettings.php.

This functionality has been tested and confirmed to work. One needs
a recent Composer version for it to have an effect. The upcoming
Composer alpha8 release will suffice. See
https://github.com/composer/composer/issues/2520

Tests are included. Composer independent tests will run always,
while the Composer specific ones are skipped when Composer is
not installed.

People that already have a composer.json file in their MediaWiki
root directory will need to make the same additions there as this
commit makes to composer-json.example. If this is not done, the
new behaviour will not work for them (though no existing behaviour
will break). The change to the json file has been made in such a
way to minimize the likelihood that any future modifications there
will be needed.

Thanks go to @beausimensen (Sculpin) and @seldaek (Composer) for
their support.

Change-Id: I8df66a92971146ab79cd4fcbd181e559115ca240
Split the rest of Action.php into /actions/

Change-Id: I071ac5778af63a5cffffd59d804c99b2c799d4e5
Special:Version: Treat AUTHORS.txt and CREDITS.txt as text, not wikitext

A review of existing extensions in git reveals that 3 of the 5
extensions that have a non-wikitext authors/credits file have this file
named AUTHORS.txt, while none of the 8 that have wikitext
authors/credits have a .txt extension. So let's fix the 2 that have
non-wikitext as "AUTHORS" and do this for the benefit of the other three
that presumably don't want to use wikitext in authors/credits.

Bug: 62153
Change-Id: Id95852ab9836fb284becd7e251374f672b69515f
Remove useless "src" param when wrapping doGetFileStatMulti()

Change-Id: I6008384ea872d71dcd2d183186a4aee5048b4dd4
Add title to list item of language link

The key itemtitle can be used to set the title of the actual list item
element. This is useful for article badges as it is already done by the js
hack to add a title for the icon.

Bug: 60717
Change-Id: Ic05c7535d7a35d9ee523373e1e3620e72887459d
Merge "Add getMessage tests with Short and Long Contexts"
Merge "Make it possible for extensions to specify which version of MediaWiki they support via Composer."
Localisation updates from https://translatewiki.net.

Change-Id: Iac95418170688f90f53dcc28f6c429f0e79b0ac4
Merge "Allow configuration of periodic task interval"