Adding OutputFormatter base class

well I thought about it but wanted the behavior to be similar to what we had in web api. I don't see a issue with throwing though.