Refactor document generation

Check for all tools: Doxygen, Latex and Graphviz
Optional generation of HTML, Latex, PDF and man pages.
Optional install/packaging of HTML, Latex, PDF and man docs.
Reorganized different CMake cache variables into groups.
Fix missing example in program wrapper documentation.