Add pushgateway support to the simpleclient.

Refactor production of the text format into a separate module.
I'm not sure what the best thing is to do here, it seems natural to me that different parts of a project would have independent versioning and each was just bumped as needed.