Horrific proof of concept code for a kind of componentised CMS. Kind of. Don't look at it. No, stop.