fix(DetailSearch): Allow use of methods and parameters in conditions (refs #5200)

Correction of #4888 and #4887 introduced a regression by preventing the
use of methods (e.g. "::getDate()") and parameters (e.g. "?FOO") in
DetailSearch's conditions.
fix(addtr): Do not replace indices in TextNode's data (refs #5136)

The nodereplacestr() performed by addtr() should not replace indices in
TextNode's data, as it may corrupt valid TextNode's data from the
template line.

addtr() will now only search/replace the indices in the attributes from
the template line and not in the data.
fix(formatCollection): correct date notice (refs #5180)
Merge pull request #1353 from Eric-Brison/3.2-I5195

fix(formatCollection): correct date notice (fixes #5180)
Merge pull request #1352 from eguaj/3.2-A5136

fix(addtr): Do not replace indices in TextNode's data (closes #5136)
Merge pull request #1351 from eguaj/3.2-A5200

fix(DetailSearch): Allow use of methods and parameters in conditions (closes #5200)
fix(doc): Correct setValue/oldValue for file attributes (refs #5218)
fix(database): Escape database name in "ALTER DATABASE" SQL instructions (refs #5189)

When issuing "ALTER DATABASE xxx" commands, the database name should be
escaped with pg_escape_identifier() to properly handle non-alnum chars.

Bumped PHP requirement to >= 5.4.4 as native pg_escape_identifier()
function is only available in PHP >= 5.4.4.
Merge pull request #1355 from eguaj/3.2-A5189

fix(database): Escape database name in "ALTER DATABASE" SQL instructions (closes #5189)
Merge pull request #1354 from Eric-Brison/3.2-I5218

fix(doc): Correct setValue/oldValue for file attributes (closes #5218)
feat(doc): add extra info for setAttributeValue exception (refs #5194)
fix(exception): log some doc exception (refs #5194)
Merge pull request #1359 from Eric-Brison/3.2-I5194

fix(exception): log some doc exception (closes #5194)
feat(Api): Add cleanVaultOrphans script (refs #5215)

A faster alternative to checkVault's clean-unref.

Usage:

  --analyze [--missing-files]
  --clean