WIP client: min client for discovery

relatedly - it might be nice to simplify this pattern because there's a lot of string<->url<->string<->url encoding going on in every request path