Add i18n support for timeago

Localizes expressions like “2 minutes ago”. jQuery TimeAgo has a lot of .js files for localization bundled with it, but it lacks a way to choose them automatically from JavaScript, so I wrote a simple function for that.

To test it easily: change language, log in, and click on notifications icon. The “Last updated” status uses TimeAgo, so it will be translated.