code: function() {
  			var app = this,
  				config = app.config;
  			// TODO : samething for register and change password
  			return deep.restful(config.session.store)
  				.get("/session")
  				.done(function(session) {
  					//console.log("User form appData = ", session);
  					if (!session.user)
  						return new Error();
  					return deep.restful(config.login.userStore)
  						.get(user.id)
  						.done(function(user) {
  							if (config.loggedIn)
  								this.done(config.loggedIn);
  							session.user = user;
  							return session;
  						})
  						.done(function(session) {
  							return deep.restful(config.session.store)
  							.put(session, "/session");
  						})
  						.done(config.sessionModes);
  				})
  				.fail(function(e) {
  					var session = {};
  					deep.restful(config.session.store).post(session, "/session");
  					return config.sessionModes(session);
  				})
  				.done(deep.Modes)
  				.elog();
  		}
docs: reload session from local storage (or other) then try a call on server needing user rights elevation (as user retrieval)) : if error : session was closed and so reload as not logged in if no error : session stills alive : so reload as previously logged in