INTEG-227:CLONE-Do not update version of content activity after checkin/checkout

Fix description:
  - Update the correct version for the document
INTEG-236: XSS vulnerability in Metadata title field

Fix description:
  - Escape html before displaying the comment
ECMS-5313: Activity Stream crashes when delete uploaded file

Fix description:
  - In case upload file and share on the home activity, we'll consider that activity is file activity.
INTEG-245: First comment is lost for deployed document

Problem analysis:
  - in normal case, when we create a document, an activity is created. So when we add a comment, this comment is added into an existed activity
  - when a node is deleted, there is no activity. When we restore a node, no activity created. So the comment cannot be added

Fix description:
  - readd the comment after create a new activity
INTEG-231: [Activity] Display all lines in summary field of web content/ product

Fix description:
  - Cut off the number of line in summary when display in Activity Stream
INTEG-230 | Mention Name in activity stream is not shown correctly

Fix description: Update method saveToNewDataFormat in UIDocActivityBuilder class. So mention processor works correctly with activity context.
INTEG-242 | [integ-forum][Migration] Some problems of Forum Activity after migration from PLF 3.5

Fix description: When we can not build a post from an old activity, we create a new one and set property for this post.
INTEG-238 [integ-forum][migration] Broken Activity Stream due to NumberFormatException in AnswerUIActivity

Fix description:
* Handle empty string when converting string to a number in the methods: getRating, getNumberOfAnswers, getNumberOfComments
INTEG-238 [integ-forum][migration] Broken Activity Stream due to NumberFormatException in AnswerUIActivity
INTEG-238 | Fix link of question created in space on activity
INTEG-238 [integ-forum][migration] Nested activities due to NumberFormatException inside AnswerUIActivity.gtmpl

Fix description:
- Handle empty string when converting string to a number in the methods: getRating, getNumberOfAnswers, getNumberOfComments.
- On migration, if the activity is not exist or the current activity is not the same as the activity associated to the question, then just add comment on this activity.
Merge commit '0277d781bbff807e987887def70b6888dd5c31e7' into HEAD