luaEval: Allow users to hook functions to events