added support to set a message format on http output

this is basically the same support for formatting the payload as in
the stdout output

I use it for a quick hack to post to a collector of cube
http://square.github.com/cube