Refactoring client so that rpc requests start off with a context object that contains the client and keypair