Made the server correctly synchronize the data.

Currently handles 1.2 million messages in a second without weird
crashes.