ECMS-4263: [WCM] NPE when add content By query portlet with By content

Fix description:
-correct the comparison clause
ECMS-6059: "Label" field in Document template has XSS vulnerability

Fix description:
  - Escape XSS characters after getting the contentType from Template list
  - Escape XSS characters when rendering for both Thumbnail View and List View
ECMS-6053: After being added symlink, published document is changed to draft

Problem analysis:
  - After adding a symlink, we trigger the event POST_EDIT_CONTENT_EVENT for the target node even when it is not modified

Fix description:
  - we trigger this event only when there is a change in the target node
ECMS-4199 Content Explorer: Error on Relation Panel of WAI Portal's home page

Problem analysis:
* The UUID of language symlink is hard-coded inside deployment file.

Fix description:
* When creating new portal, trigger AddTranslationPlugin to add translations for this portal's pages.
* Implement WaiportalTranslationsUpgradePlugin to update the UUID in old pages
** Use WCMCoreUtils.getService to get CreatePortalArtifactsService instead putting it inside the constructor (for data migration from Platform 3.5)
** Make the configuration for WaiportalTranslationsUpgradePlugin separate from wai extension