Differential calculus and gauge theory on finite sets