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