Add simple PING support so clients don't disconnect
Segmentize messages correctly (for e.g. links)