Consolidate torch.lua and nodes.lua