espra/rpc: implement auto-checking of auth for RPC calls.