Updates to UI classes

Implemented mouseclick handling, reworked color class, added a Rectangle class.

Also added exception classes.