Fix grid rendering.

Very long lines don't render with pixel thickness. Chop up the grid into
grid patches.
Add GeometryColor class.

Allows applying continuous color to points, lines, and surfaces.
Move color sorting.