New functions to handle color palettes.

A new type, hpix_color_palette_t, has been defined, and the old color_t type has been made public under the name hpix_color_t.