Add missing event functions
Remove custom event instancer and convert old inline events to Lua