Implemented xtends() and EventEmitter...Smart socket now using that