Expose TextMarker constructor, add getOptions method to it

Issue #1111
Add overflow: auto to line widget wrapper to prevent margin leaking

(If the widget had a margin, that margin would end up outside the wrapper, throwing off
line height measurement.)

Might be related to issue #925