Update localization.js

* filter function is updated to assign values asynchronously
* filter now can use the content of the html tag:
     <span i18n>My string</span>
is the same as
     <span i18n="My string"></span>
and the same as
     <span>{{ 'My string' | i18n}}</span>
* behavioral change: filter does not append the translated text; it replaces the content
* removed the requirejs dependency