updated from @rjmackay and socektio-over-nodejs.

Merged-all and closed #238, closed #239, closed #240, and closed #241