Set up memorising of state to close #23.

Set up DetailViewModels as a base class so that OnNavigateTo/From can be overridden if desired.