main: hook up with discovery

@philips We need to modify current discovery to create _config/size key when new the token.
tested on my local machine, works. 
setClusterFromDiscovery() I am going to rebase and merge it to keep this going. We can discuss the func name later.