Layout, dodan socket.io + popravki