Adding Callback for connect

Added callback for connect so you can interact like dynect.connect(function(err, token){});.

This is useful because you dont need to register the error event for handling connection errors.