add some power to ly.document.Cursor, improve api: document is a property everywhere