general: JavaScript i18n helper

* Adds a _ function that can be used directly inside JavaScript code for
internationalization; example usage in tags module.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
legacy: webinterface import fix

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
record: JavaScript modifications

* Moves JavaScript to static;
* Record page tab switching triggers "tabreload" event";
* Workaround for legacy URL routing.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>