Make 'color' binding two-way, let user pass palette in

Thanks for the original code; here's a couple of minor fixes.