Shareholders hoping to benefit from a battle over the future of the H.J. Heinz Co. sent the stock up more than 20 percent in the past three months at the same time the Pittsburgh ketchup company’s management believes it has honed the business into fighting shape.