 json = common.json
 
 INFO = undefined
+hub_client = undefined
 init_info_json = (cb) ->
     winston.debug("Writing 'info.json'")
     filename = "#{SMC}/info.json"

        project_id : project_id
        location   : {host:host, username:username, port:port, path:'.'}
        base_url   : base_url
    fs.writeFileSync(filename, misc.to_json(INFO))

init_info_json()

# Connecting to existing session or making a new one.
connect_to_session = (socket, mesg) ->

    if program.console_port
        console_sessions.set_port(program.console_port)
    async.series([
        (cb) ->
            init_info_json(cb)
        (cb) ->
            # This is also written by forever; however, by writing it directly it's also possible
            # to run the local_hub server in a console, which is useful for debugging and development.
