Client-server architecture

This change reworks the Mocket API to more closely match the real Socket.IO API.
I was trying to figure out the best way to do this pattern when I wrote mine. I like it.