Functionals with linear growth in the Calculus of Variations I, prima parte