Factor out Screen's direct handling of curses screens
Implement Buffer line indexing
Add Screen tests