I know how to bind C functions to Lua if anyone needs help on putting that together. I also know some Lua but I know mostly C/C++. I know how to work with metatables, Lua's most interesting feature. Lua may or may not be the best scripting solution but I also know some of Mozilla's jslib, which...