Merged flexible renderer pipeline
render passes are now defined in a script
lets scripts register to events
moved cube inserting into script