Authenticate socket.io connections without using querystrings
Simulates part of Elixir standard library in JS