Bug 1078297: Need localized number formatting helper for jinja templates

Also change l10n_format_* helpers to use lang from context.