fix/156 add payload socket.close() test
sending error on transport creation failure due to bad request
adding test for faulty websocket request
Merge remote branch 'upstream/master' into bug-159-fix
Merge pull request #160 from mjgil/bug-159-fix

adding fix for when websocket is undefined
Clear all timers on socket close
clear timers in onClose
Merge pull request #161 from jphire/master

fix/#156 add test for calling socket.close() in payload
Merge pull request #172 from Raynos/master

Clear all timers on socket clos