Added SafeDataStream to replace QDataStream for sockets

Also disabled debug output in checkpass example, it breaks the output