Initial commit of snap to existing vertex.  There is at least one bug
that prevents the line from snapping to the correct locations in some
situations.