Implement new zk interfaces in client API. Fixed #14.