Fixes weird behavior when using mouse to select text

The curve controls was registering to mouse events on the body as soon
as they were created, resulting in weird behavior of mouse selections.
Prepare 0.4.0 release