Will/renderer rewrite

This is a complete rewrite of the renderer.  It enables the use of loops, and conditional blocks.