Document input.on_selection_changed callback.
Cleanup preview mode and add editor scrolling properties

Added first_visible_line, last_visible_line and centered_visible_line
properties to editor.
In line_input, removed direct sci access and removed buffer parameter.