TNM now disconnects from server after a session (server behavior not yet implemented); fix a few IQ-ID related problems on server side