Began copying and stripping features from Lua51 to make the Ruby scripting manager