Implement socket.io

Adds basic realtime poll counting which fixes #4. Locomotive 0.4.0 will
make socket.io easier to implement (no listening on port 3001).