Localization infrastructure

Redo our localization infrastructure so it works from pages and with AMD loading. We reload the page when the language changes. API documented, tested. Automatically detect language.

Login page not yet translated, but can be.
What about keeping the playground out of pkg/base/po, as an example of how people can localize their own components?  For now, we might write the pe.de.js etc files by hand.