Add a getFormattedMessage method to Localization by eemeli · Pull Request #656 · projectfluent/fluent.js

This will need a rebase once #652 is merged. Only the last commit is a part of this PR.

Closes #282 by providing for a new .getFormattedMessage() method on Localization, which will format the value and all attributes of a message in one go. This matches the implementation added to python-fluent in projectfluent/python-fluent#212.