Color-convert framebuffers that are bound as CLUT textures

Not quite ready to merge yet, just requesting comments and testing. Needs cleanup and, well, testing.

Shadows look correct in FF Type 0 with this. Don't really know if it will fix anything else atm.