Click and drag version one

Added mousedown and mouseup click handlers to draw a line if event
points are different, and a point if the same.
Minimum line length of ten

Added function to calculate length between mousedown and mouseup.  If
length is less than ten, a point will be drawn at the mousedown
location.