Refactor of AST

This tech task is a first step to allow one to access the render context in functions.