Make net messages more generic, add some Lua