Using emscripten's embind to expose our c++ api to javascript.
Unfortunately, embind seems to not support multiple inheritance, so I
had to change Sender to be a subclass of Receiver, which seems
reasonable enough to me.