Basic ZK server and client code