editor: send DOM events for editor dwell and margin click events

(integrated from trunk branch change fda0342 by Todd Whiteman <toddw@activestate.com>)
view: add method to determine which margin applies for point x,y

(integrated from trunk branch change de5c42a by Todd Whiteman <toddw@activestate.com>)