Add logging subsystem.
Add rpc client generation for master and replicas.