Add NumberFormatter::formatNumberToLocalizedText

Move code from `smwfNumberFormat` to `NumberFormatter::formatNumberToLocalizedText`
in order to cache message text (especially costly when used on a repeated basis).
Merge pull request #671 from SemanticMediaWiki/number-formatter

Add NumberFormatter::formatNumberToLocalizedText