Add --min-lines parameter to sedit.
Fix terminal resizing.

When decreasing the terminal size, the screen0 offset was not being
recomputed at all. Also added bounds checking to set_screen0.
Add content_type keyword arg to respond_file function.