Add pushgateway support to the simpleclient.

Refactor production of the text format into a separate module.
the convention of java is to have constants in snake case all capitals.