Add -restrict option; restrict symbol generation to JSON file

Fixes go-gl/glow#42
Merge branch 'clean_synopsis' into restrict
Move error check for json.Unmarshal onto single line.
Represent set as map[string]bool instead of map[string]struct{}.
Merge pull request #43 from slimsag/restrict

Add -restrict option to restrict symbol generation to JSON file.