Added support for Lua 5.2

Should still work against Lua 5.1 as well.
Micro-optimizations for pushing strings to Lua

Use lua_pushliteral and lua_pushlstring instead of lua_pushstring, which
avoids Lua having to determine the length of the string.