Sessions: Save session on document open and close
Start a timer once a doc opens/closes and save on timer's timeout. This only works for documents not any other changes, perhaps we should have an interface in plugins that allows plugins to notify the sessionManager that some change has occurred and it should save the session.