Get AST and script generation working. Maintain refs to child components and use a new JSRule component to manage everything.