Added most of the infrastructure for converting ascii diagrams.
Added some more SVG generation.