A pure framework for socket.io using the idea of middleware