- Added some flexiblity to the Lua event system and fixed tests.