emupal.c: add support for RAM-based palettes with indirect lookups. Update various drivers to use it [Alex Jackson]