. refactor the connection upgrade methods into one
. refactor the connection upgrade methods into one

beatrichartz/martini-sockets,go-macaron/sockets,jmptrader/martini-sockets,go-macaron/sockets,jmptrader/martini-sockets,beatrichartz/martini-sockets