Execute rule closures in the context of other top level closures in a script.

+review REVIEW-5177
Rename $ method to avoid need of checkstyle config change.

+review REVIEW-5177
Class rename.

+review REVIEW-5177
Minor simplification.

+review REVIEW-5177