code: function(){
      if(window.localStorage){
        var saved = localStorage['cloudmineTodoSession'];
        if(!saved)
          return null;
        var prefs = JSON.parse(saved);
        return prefs.token;
      } else {
        var cookies = document.cookie.split(';');
        for (var i in cookies){
          var cookie = cookies[i].split('=');
          if (cookie[0] == 'cloudmineTodoSession' && cookie[1] != 'none'){
            $('#login').hide();
            $('#restoring_session').show();
            return cookie[1];
          }
        }
      }
      return null;
    }
docs: /*
  Check for a session_token from a previous login, stored in a cloudmineTodoSession document cookie
  NOTE: This doesn't work in Chrome on default settings because it doesn't allow local cookies to be stored.