Implement initial CalGray support

Gamma and Whitepoint are supported in this patch for CalGray.
Blackpoint is not supported.
Merge pull request #3577 from kkujala/calgray

Implement initial CalGray support