Make socket.request public
make req.query public
A few bug fixes. Testing on message passing.

Add debug output next.