added socket.io functionality

* callback on req.io.emit
* get, set functions on socket