Unified per field coloring and lighting

This brings together the per-field lookup tables for both webgl and javascript composite lighting.