Percolation on trees as a Brownian excursion: From Gaussian to Kolmogorov-Smirnov to exponential statistics.