Fix :q behavior on last window.

Quitting the last window is actually quitting the editor, so make :q
equivalent to :qa if there is only one window and only one tab, thus
forcing all of the required checks on hidden buffers being saved to
actually occur.