Add a new execute function.

We can now specify an event we're executing. On this event all output templates that are registered to it will be generated
and the paths to those generated files can be passed on to the executing command (as well as any other variable).