Issue #2353011 by arpitr: Remove deprecated function views_get_all_views.
Issue #2313883 by alexpott: Fixed Minor code flow improvements to SessionHandler::write().