Erlang/OTP version of the (now-outdated) Socket.IO chat tutorial originally by @mmuhkin