[Bug 40390][Bug 40397] entity namespace fix.

This change makes the lists of entity namespaces and entity models available
programatically, and uses these lists instead of namespace constants everywhere.
It also fixes the behaviour of Wikibase.i18n.namespaces.php to not interfere
with core namespaces.

WARNING: this change requires a change in configuration of all existing installs!
Without the necessary configuration change, old installs will abort with an error.
The ExampleSettings.php file has been updated to reflect the new settings.

When merging, please send a mail to the list alerting people of this change!

Change-Id: I3e96a402fd4fa9f70c737abc3fb7b37c6b27cb35
Fix change notifications for deletions.

Directly accessing the text table is not going to work.

Note: this needs Ie1fc967d on the Wikidata branch!

Change-Id: Ia5bf996a9b2cffff242133e391de16ef1a549e15
Removed ref to removed global

Change-Id: Ib08854a4f2a27007151f524b287f9fe9f663d649
Comment out alternative configuration so people can still include the examplesettings file

Change-Id: I0ca24db5edaee09c02a351f730b422a21e4eabff
Update docs

Change-Id: I03f6902a99c59c4d58de85de8d9633ec25464006
Merge changes I0ca24db5,Ia5bf996a,I3e96a402

* changes:
  Comment out alternative configuration so people can still include the examplesettings file
  Fix change notifications for deletions.
  [Bug 40390][Bug 40397] entity namespace fix.
Added docs for 7bf2b0069c28caadd2706d1558edcb64cc73c90e

Change-Id: I960aef8f1a187d18968702d8109763eee6ff8170
Use sha1 instead of md5

Change-Id: I213a8efc21866f953f8a434eeecff4515c6ad7fe
Use new methods in the Utils class regarding the entity content models

Change-Id: Ib7e61b70dbd77c8cbaa9a79269b4c768dd2a8e68
Ignore resource definitions

Change-Id: Ia4544f695b675c882f887d700ced6465d1100042
Ignore test helper in test coverage

Change-Id: I8c282967b442ae9b6cd030b342c511f2034e225b
Ignore settings base test in code coverage which for some reason is not ignored automatically

Change-Id: I5070e663d5ae143081b3fc685c3ab228008888da
wb.Site.getUrlTo no longer tries to do any title magic

Rather assume a normalized title string instead of creating a mw.Title. This is because we want to create links to foreign wiki and we don't know about the foreign config, e.g. namespaces which could be different from the local ones.

Change-Id: Icd58b7d124afc4059eca47eff89ed188eff3c83e
Merge "Use sha1 instead of md5"
(bug 40399) site-link urls will be taken from API result

This is achieved by some hackery where we overwrite the wb.Site.getUrlTo function to add a filter for all urls we are sure about because we got them via the API. This seems like the easiest way to implement this without refactoring more. Also, it still allows to use wb.Site.getUrlTo() without the API, which should work rather well (at least for MediaWiki sites) now.

Change-Id: I23d54b0969073dc0188095b0405d7a78b931e200
Merge "wb.Site.getUrlTo no longer tries to do any title magic"
Fixed issues in examplesettings found by Denny

Change-Id: I8cbcb92c850d63196717bb08e526c2a4991616fc
Merge "Use new methods in the Utils class regarding the entity content models"
Merge "(bug 40399) site-link urls will be taken from API result"
disable phase 2 stuff

Change-Id: Id95872dbd6ef63929908c782db24a6f18938d270