On the W-geometrical origins of massless field equations and of gauge invariance