Fixes #12, events are now send to the server based on the subscribed events by the server
Fixes #12, events are now send to the server based on the subscribed events by the server

Also:
- refactored the code to make it more organized
- stopped creating new layers for each figure

CanvasHS/Canvas.hs,CanvasHS/Canvas.hs