Fixed test of <replace/> that got broken by more quoting.
Mysql: Fixed mysql_upgrade use on WIN32.

Mysqld on WIN32 uses named pipes, so make sure to tell
mysql_upgrade about it.

Fixes [bug 7007] and [bug 7018].
Merge branch 'patches/bug7018' into 5.2

* patches/bug7018:
  Mysql: Fixed mysql_upgrade use on WIN32.
Version bumped to 4.1.39 by distmaker.
Version bumped to 5.2.388 by buildsystem.
Version bumped to 5.2.389 by buildsystem.
Document the modifiers ! (eliminate field padding) and E (alternate form) for
<date#strftime>.
Tags: Added <emit#csv/>.

Added RXML-support for emitting values from csv-files.

Fixes [bug 7147]
Merge branch 'patches/bug7147' into 5.2

* patches/bug7147:
  Tags: Added <emit#csv/>.
Tags: Survive without Parser.CSV.

Pike 7.8 doesn't have Parser.CSV, so provide a fallback implementation.
Tags: More stuff to survive without Parser.CSV.

Parser.Tabular in Pike 7.8 lacks some stuff that Parser.CSV needs,
so incorporate it in the fallback code.
Merge branch 'patches/bug7147' into 5.2

* patches/bug7147:
  Tags: More stuff to survive without Parser.CSV.
  Tags: Survive without Parser.CSV.
Add SloppyDOM.DocumentWrapper to avoid cyclic garbage.
Merge branch 'marty/sloppydomgarbage' into 5.2

* marty/sloppydomgarbage:
  Add SloppyDOM.DocumentWrapper to avoid cyclic garbage.
Add custom count_memory callback for <cache> tag.

For more accurate entry size measurement.
Cache Tag: add alternatives mapping to cache after adding entries.
RAM cache: Fix cache manager balancing bug.

cost_hits and hits were mixed up for cost-aware managers, leading to
gross underestimation of the hit ratio compared to non-cost managers.
Reduce garbage produced by UserTag Frame objects.

The compiled PCode objects are now stored in the RAM cache rather than
being referenced directly, which breaks a cyclic structure between resulting
VariableChange and and PCode objects.
UserTag: Store saved scopes in external mapping to avoid circular refs.

Also moved the CompDefCacheEntry class out of the Frame/Tag classes to
avoid circularities originating from parent pointers.
Move the CacheTagEntry class out of the TagCache class.

To avoid circular refs due to parent pointers.