XWIKI-9842: Add new Document.getLocale() API
* Deprecate Document.getLanguage()