Revamped palette.pl. Support separate colors for bg/fg.