Some important bug fixes

Manual tester: No string resizing after recvfrom.
Broker: Forgot to send persistence command on LOGOUT.