added Socket.request test, fixed 'upgrade' emit timing, fixed Socket.request doc