Ah, screw it, let's just use .rm files after all.
Tweaking the grammar wrappers.
A whole mess of changes. Probably security holes. Don't use this.