lua : stack should be clean after initialization
lua : add an internal API to register new lua events