refactor(lua): move lua_ref to separate file

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
refactor(lua): move lua_ref to separate file