Adding OutputFormatter base class

This one contains mostly outputformatter interface and existing JsonOutputFormatter implementation of that.