app: add the base rpc framework.