I40 color picker force close

Implemented fix for issue 40.
Refactor brushpicker and color chooser to Singletons.