Lua52

Updates Lua to use Lua 5.2 syntax, mostly just changing luaL_reg to luaL_Reg and a couple other changes for function references.