update KVMessage

add consideration of the case of msgType = resq in toXML() and
KVMessage(socket, timeout)