Always display "In other languages" section

(bug 49079)
Now, the "In other languages" section is displayed always. If the user has no languages configured
using the Babel extension, ULS is queried for frequent languages filling the section.
In order to improve modularity along with implementing that new functionality, MediaWiki's hook
mechanism is used instead of using the document ready handler.

DEPLOYMENT: due to how dependencies are handled, this only works when ULS is loaded BEFORE wikibase is loaded.

Needs https://gerrit.wikimedia.org/r/#/c/106689/ to work properly for anon users

Change-Id: I1978e78cc170c1adb81655eda3d41246fa33f4d4
Merge "Always display "In other languages" section"