Major refactor to CGP parsing.

Adds saving functionality for CGPs.
Don't dump frame_count_mod unless needed.
Don't compile in debug dump.
Include shader_parse.c in griffin.
Merge branch 'cgp-refactor' of github.com:Themaister/RetroArch into cgp-refactor