fix(security): Prevent XSS with warning messages (`addWarningMsg()`) (refs #4872)

Also:
- Prevent XSS with action done message (`addActionDone()`)
- Prevent XSS with error message (`exitError()`)
- Add `cleanhtmljs()` function in `freedom_util.php`
test(TestTypedValue): Test Doc::setAttributeValue() on arrays with DateTime's values (refs #4868)
fix(doc): Fix Doc::setAttributeValue() on arrays with DateTime's values (refs #4868)
fix(search): catch search errors in generic_search (refs #4869)

Use more comprehensible message for end-user.
fix(search): escape last fulltext varaible (refs #4869)
fix(exitError): Add missing include of freedom_util.php (refs #4872)

Include "FDL/freedom_util.php" for proper definition of cleanhtmljs()
function.
fix(doc): Correct getDate to interpret minute parameter (refs #4870)
fix(i18n): Correct typo message DFLT0008 (refs #4871)
fix(Doc): Reset private properties when Doc::affect() is called (refs #4877)
fix(UI): Correct cancel's redirect URL for family's parameters edition (refs #4873)
Merge pull request #1229 from Eric-Brison/3.3-E4786

feat(document); thumbnail is original image in size is zero (refs #4786)
Merge pull request #1218 from eguaj/3.3-A4872

fix(security): Prevent XSS with warning messages (`addWarningMsg()`) (closes #4872)
Merge pull request #1219 from eguaj/3.3-A4868

fix(doc): Fix Doc::setAttributeValue() on arrays with DateTime's values (closes #4868)
Merge pull request #1220 from eguaj/3.3-A4869

fix(search): catch search errors in generic_search (closes #4869)
Merge pull request #1222 from eguaj/3.3-A4870

fix(doc): Correct getDate to interpret minute parameter (closes #4870)
Merge pull request #1223 from eguaj/3.3-A4871

fix(i18n): Correct typo message DFLT0008 (closes #4871)
Merge pull request #1224 from eguaj/3.3-A4877

fix(Doc): Reset private properties when Doc::affect() is called (closes #4877)
Merge pull request #1225 from eguaj/3.3-A4873

fix(UI): Correct cancel's redirect URL for family's parameters edition (closes #4873)
fix(exitError): Move cleanhtmljs() into `Lib.Util.php` and add missing include_once (refs #4872)

Move definition of cleanhtmljs() into `Lib.Util.php` and add missing
include_once("FDL/Lib.Util.php") in `Class.Action.php`.
fix(security): Prevent XSS in viewcard.php (refs #4917)