WIP client: min client for discovery

wait for more opinions on this one.
@unihorn @jonboulle @philips