Add support for generating dot graph

As requested in issue #31 this patch adds an instance method to generate
a Graphviz/Dot graph describing the state machine.