Bug 1087541 - Make RuleNodeWithReplacement handle animations and transitions like RulesMatching codepath does.  r=birtles

I originally wrote this to see if it would fix bug 1086937, but it
didn't.

Note that this conflicts a bit with the patch in bug 1085769; whoever
lands second will have some merging (though it shouldn't be difficult).
Bug 1090626 - Rename result of IsChineseOrJapanese from isCJK to isCJ, to avoid misleading, since it does not include Korean.  r=jdaggett

Note that the name inside of IsJustifiableCharacter is already correct.