Output Formatting

Added prototype for output formatting of the run command. Its not perfect yet, because in XML case, notifications are outputed as well.

Question here is, should XML be a byproduct, and you pick a file where it goes? Or should xml be a secondary output channel?

I would refactor in both ways.