Output format plugin

This is early work. I just wanted you to have a peek to the direction this is turning into.
Maybe add a comment above, so it's clear on a quick look what we do here.