Implement `make diagrams` command

The script scans `.c` files for state machines and draws them using
graphviz. Diagrams are not perfect, but helpful anyway. Also a quick and
dirty html page is generated.

Signed-off-by: Paul Colomiets <paul@colomiets.name>