Rebased socket.io session adjustments from 0.9.