Refactor Trophies javascript.

All trophy scripts should use the TrophyHelper#display_trophy_link
Add the `trophy-class` back to the user's profile page.
The script now updates the link text depending on the current state of
the trophy.
Trophies should work with Turbolinks now.