Correctly handle mousemove events when switching between canvases or leaving the document.

Closes #250.
Merge git://github.com/paperjs/paper.js