Diagrams rendered to same path as source file, added Preview as viewer

This might address #3. 

Diagrams are saved to files with the same as the source file — so for example from `source.c` you would get `source-Diagram-XXXX.png`, this would seem to be a sane naming convention?

I've also added in a settings file for choosing the viewer.