Output format plugin

This is early work. I just wanted you to have a peek to the direction this is turning into.
I'll look into it. I should have missed it.

Maybe we should add a ticket to add test coverage to it?