Diagrams rendered locally

Fremantle

I've merged the first part of the locally-rendered stuff for the Diagrams extension. There are still a bunch of things that don't work quite as they should (like captions) but for Graphviz and Mscgen things are nearly done. I'll get it deployed on toolforge:genealogy and experiment a bit.