Add Palette support library module

Fixes issue #109.