Feature/color deletion

* Make sure deleting colors does not invalidate groups/links
* Add tests to color model