Update client API, support proto, document.

Pending review …