Implement class-specific bar color settings

Add lua logic to deal with class-specific bar color settings.