Of course, also nowadays, in the high-energy particle and nuclear physics the mass of a particle is always the invariant mass in the sense explained in this thread. There is no need to relabel energy diveded by c^2 "mass", which was a misconception in the very early days of relativistic theory (as was speed-dependent temperature). This confusing ideas were obsolete as soon as Minkowski discovered the mathematical structure behind space-time (of special relativity).
As a rule of thumb you can remember that for massive quanta all intrinsic quantities as mass and spin are defined in their rest frame. Formally this is derived from the theory of the proper orthochronous Poincare group, i.e., the symmetry group of Minkowski space and its quantum equivalent, where the Lorentz subgroup is substituted by its covering group SL(2,C).
For masseless quanta it's a bit more complicated, because there is no rest frame. As it turns out, there are only two spin-like degrees of freedom for quanta of spin s \geq 1/2 (contrary to the case of massive quanta, where one has 2s+1 spin-degrees of freedom).
BruceW is right in his idea on the tracelessness of the energy-momentum tensor in classical (!) field theory. The photon (quantum of the electromagnetic quantum field) is massless and thus the corresponding field equations of the classical field (which are nothing else than the good old Maxwell equations) have an additional symmetry, the scaling symmetry. From the Noether theorem of this theory it follows that the energy-momentum tensor is (covariantly) traceless.
However, in the full quantized theory scale invariance almost always is broken by an anomaly. In perturbation theory this can be understood by the fact that in a theory with massless particles, the divergent loop diagrams cannot be renormalized at the renormalization point, where all external four-momenta are taken to vanish, because there is a singularity of the corresponding vertex functions. One has to choose a point where the external momenta are space-like instead, and this introduces an energy-momentum scale into the the theory. This expclitly breaks scale invariance.