Output format plugin

This is early work. I just wanted you to have a peek to the direction this is turning into.
I'm not sure I totally follow what you mean, but a small PR sounds good :P