Splitted rendering in two steps

- Splitted the rendering of the rectangle and the rendering of text so
that buttons/panels/etc. and their border can be transparent
independently.
- cleaned up by setting up some common functions
- added event handlers for the panel (should be improved)
Extended GUIHandler which now also handles the RC