Adding thrift api calls for getting status of executing commands and the cancel api as well.