Coped changes from ClarionAddins version of this project. Adds Clarion color property and some bug fixes. Not sure what, check the diff.