Removed unnecessary sendQueueTail
Stopped using the slow arguments in the important emit method.
http://jsperf.com/mentioning-arguments-slow-down-js
Using "strict mode" because its faster and cleaner.
Used Date.now() which is a lot faster than instantiating a new Date on every request.
Removed unused object parameters
Write the _connect block in a more concise manner.
Moved the if condition outside the method (it is called at another place as well and I want to make sure that the test for socket is done there)
Missing indentation
Moved from self to this as self is no longer required.
It is possible to call shift on an empty array so this willl have the same result.
Added useful test that checks for latency issues.
Made sure that the timeout certainly occurs.
Code guidelines update