app: connect GimpColorDialog to the history palette's "dirty" signal

instead of having a ton of convoluted legacy code doing the same
manually. Simpler and more obvious code.