add Connection class
inject Connection class; not working yet
fix bugs; add timeout handling in handshake; add destroy()
added test-connection.lua; added refragmenter for fragmented json messages; fixes in connection.lua
replace refragmenter with luvit-split-stream; wsp fixes
remove endpoint specific code; construct handshake message in Connection
remove unnecessary code
changing port in tests, (hopefully) to fix travis-ci builds
Use the 127.0.0.1 instead of localhost as localhost can resolve to a host in weird networks
Merge pull request #89 from virgo-agent-toolkit/songgao/refactor

Refactor Work In Progress