Start of note move support.
Fix various event handlers to make note dragging more responsive when the pointer moves off the viewport.
Start of edit capability.
Throw actual TypeError objects.