Karma tests for i18ng

Same as #3, but for the directive rename in #4.

(Same git tree, but an extra commit at the end.)