Photons, clocks, gravity and the concept of mass