Gradings and graded identities for the upper triangular matrices over an infinite field