fixes #2420 - extract strings for i18n from JavaScript, various i18n fixes

cc @lzap, @abenari for review

The main bits that are missing are:
* will_paginate (uses Rails i18n, was working on this separately)
* jquery datatable (jquery has its own i18n system that needs looking into)
* any other asset gems, e.g. spice-html5