Add support for Rails 4, and re-compile translations.js when a Rails locales yml file is changed.

Create a new `depend_on_locales` directive and use it in i18n/translations.js to automatically expire the asset when the Rails localization yml files are edited.  This makes local development much easier — there's no need to manually recompile assets whenever a translation changes.