Initial version of Lua scripting API