Moving distributable API to palette-builder.js