code: function DocumentServer(socket, connection, modelDirectory) {
    this.changeDispatch = new ChangeDispatch( this.handleDocumentChange.bind(this)
                                            , this.handleCollectionChange.bind(this))
  
    this.db = DatabaseMethods(connection, ChangeDispatch)
    Document.prototype.db = this.db
    this.connection = connection
    this.setSocket(socket)
    this.embeddedIds = {}
    this.modelDirectory = modelDirectory
  }
docs: /*
  Takes in a "socket", or any EventEmitter, and a mongodb database connection
  and listens for updates on the socket