Adding OutputFormatter base class

I think @sornaks  checked in a helper type for this.