(1) Added addEventListener and removeEventListener functions to data-server.js. (2) Added custom events (and dispatchers) to several functions within data-server.js.