Output format plugin

This is early work. I just wanted you to have a peek to the direction this is turning into.
It's a convenient helper function. Imagine a format plugin implementor that needs this to format data depending on this… It can go away since it's not needed, but it sure won't hurt. Your call.