Changes linkByIdResult.jsp to use possibly overridden version of #getPermalink if available instead of Directory.ObjectModification#getPermalink.
Adds RTE legacyHtml setting so that the project can opt into the older, somewhat dangerous parser behavior.
Merge branch 'release/2.2'