Apollo was running short of cash when Tim Zheng made its software cheaper and easier to buy. The engineer who helped rebuild the business has now handed over the CEO job.