Add event emitter and re-arrange dependencies.

Adds events package with Emitter that server and peer subclass. Also
move peerjs to deps folder along with new ot.js. ot is now a dependency
for server and client.