Sixteen months after laying off half its workforce, restaurant software firm Toast completed a whirlwind turnaround Wednesday when it began trading on the New York Stock Exchange at a $20 billion valuation.