CSV output format support

This adds a "-f" or "--format" command line option that can be used to
enable CVS output format which is easier to work with by tools like GNU
plot.

Signed-off-by: Pekka Enberg <penberg@iki.fi>