Implementing proper formatting for quantity values.

This does not yet cover localization of the number format.

IMPORTANT: merge Idf060e80f79f right after this to fix
otherwise broken WikibaseValueFormatterBuilders.

Change-Id: I83b46b5f242bfddc7ab41b6f60a98a514f5ca3d3