new method Peer.isConnected()

This method should be used for detecting if there's an active connection to the peer server instead of usage of Peer.disconnected, because this field is used internally and with this function the behavior internally can change later without problems.