Add thread as referencing object for locals

Major update and refactor to support Lua 5.1, 5.2, 5.3 and 5.4.

examples/luastate.lua: Fix variable name (thanks Stephen Q)

Add examples/luastate.lua from http://article.gmane.org/gmane.comp.lang.lua.general/90539

(0) -10 -4 tip

mercurial