Part 2 of tutorial

App lifecycle. Save app state to session. RoamingSettings for
persistence between sessions.