Bug 1078297: Need localized number formatting helper for jinja templates

Use in a template:
Contributors: {{ 108722|l10n_format_number }}

I noticed a caching problem locally, the format chosen for the locale seems to be reused if I switch of locale. It may be my local setup that is wrong though.