Added functionality for generating dependency graphs

This PR adds a config option to enable the generation of dependency graphs.
If you provide the ```--graph``` option, dependency graphs will be generated in the ```#{config.puppetdir}/var/state/graphs``` directory.

Regards.