Add -restrict option; restrict symbol generation to JSON file

Fixes go-gl/glow#42
nit: prefer `if err := json.Unmarshal(data &r); err != nil {` for consistency