 fs              = require('fs')
 express         = require('express')
 assert          = require('assert')
+request         = require('request')
 URL             = require('url')
 path            = require('path')
 BrowserManager  = require('./browser_manager')

    server.listen 3001, ->
        console.log 'Internal HTTP server listening on port 3001 [TODO: remove this].'
    server

socketio = do ->
    numCurrentUsers = 0

            # First msg should be the client's browserID
            console.log("Socket.io client handshake: #{browserID}")
            # Look up the client's BrowserInstance
            browsers.find decodeURIComponent(browserID), (browser) ->
                # clientConnected processes client's messages.
                browser.addClient(client)

