Four years ago, two lifelong friends turned a small investment into the largest crypto miner in North America. Now they are warring over the company's future.