 
 MAX_DEFAULT_PROJECTS = 50
 
+_create_project_tokens = {}
+
 # Define projects actions
 class ProjectsActions extends Actions
     # Local state events


    get_project_open_state: (project_id) =>
        return @get_project_state(project_id, 'open')

# Register projects store
store = flux.createStore('projects', ProjectsStore, flux)

        opts = defaults opts,
            title       : 'No Title'
            description : 'No Description'
            token       : undefined  # if given, can use wait_until_project_is_created
        if opts.token?
            token = opts.token; delete opts.token
            opts.cb = (err, project_id) =>
                _create_project_tokens[token] = {err:err, project_id:project_id}
        salvus_client.create_project(opts)

    # Open the given project
