s/luaL_reg/luaL_Reg/
Use luaL_argerror instead of luaL_typerror
Keep stack balanced
Return library from require
Update examples+tests to use returned table instead of global
Update to Lua 5.2