Extend LUA_callfunction with variable return arguments and replace all old lua code with LUA_callfunction