(bug 41007) Localized numbers in WikiBase js

- patch set 2: rebase, added direct mediawiki.language dependency to resources, tweaked line breaks
- patch set 3: commit message

Change-Id: I5ceb7a7ccb491ea3c4115b9218ca18944674131c
Merge "(bug 41007) Localized numbers in WikiBase js"