Added support for signal events
Optimised counter drawing

Before, we tried to plot points to the left of the visible area.

Also, avoid drawing the last vertical line if it's off to the right.
Seems to make Cairo glitch.
Simplify "map" threads in the same way as for "bind" ones