1. restore_to_snapshot feature implementation
2. ensure_csrf_cookie on index page