Cleaned up the CurveTo example.

Signed-off-by: Grant Skinner <info@gskinner.com>
Fix for #292

Issue with mouseup events off-canvas permanently setting primary pointer id to -1 & preventing stage.mouseX/Y from updating.

Signed-off-by: Grant Skinner <info@gskinner.com>