Extract Sessions into session control

(As preparation for a simple shell view control)