Brownian Motion, Chern-Simons Theory, and 2d Yang-Mills