Add include guards, trivia header, and finish ghdecode. Add preliminary (broken) logic for JSON generation in SConstruct.