Add GIMP palette loading code

Change-Id: Ie0d0787342bc806a1848cb904114f0ca16c9df69
Add PaletteManager, refactor palette code

Change-Id: I7e30fc895834318514b51bc648d32aa6d297bfae