lua: move metatable registration for lua_common

this gives better encapsulation
lua: move gettext metatable registration to lua_common
Merge branch 'lua'