Add basic test
Test binding handlers to socket events
Test connect returns a promise and refactor
Test connect handler
Add sinon to package
Test retry and connection
Replace with tested wait-for-socket implementation