Space-time discontinuous Galerkin finite element methods. Part I Scalar conservation laws