Palette buffer

This merge optimizes CRAM writes in bluelib, as to go via a ram buffer