Converted palette_t and palette_client to classes. General palette.c
cleanup.