Added event factory
Added template compiler script

Lots of other stuff