Presymplectic Hamilton and Lagrange systems, Gauge transformations and the Dirac theory of constraints