Client: Cleanup, #use_dtls.
Methods for checking mid and token.