An operator algebraic approach to Yang-Mills theory in two dimensions