most parts of the protocols for gamma ramps

Signed-off-by: Mattias Andrée <maandree@operamail.com>