add listeners to server, mirroring ot.js code
fix typo in clients, add use strict to packages