Add links to a generated SVG diagram.

Properly escape double quotes and backslashes in DOT while here.
Move DOT stuff into a new helper named DotHelper, adding some specs.
Merge pull request #252 from knu/clickable_diagram

Add links to a generated SVG diagram.