Emit connect event on legacySSL connection

Hi there,

I was trying to use node-xmpp-client to connect to the GCM Servers via legacySSL, but Connection.startStream() was never called. It seems, that the connection via tls socket is not emitting the 'connect' event after opening.

### Setup

    var xmppClient = require('node-xmpp-client');
    var options = {
        type: 'client',
        jid: "xxxx@gcm.googleapis.com",
        password: "xxxx",
        port: 5235,
        host: 'gcm.googleapis.com',
        legacySSL: true,
        preferred: 'PLAIN'
    };
    var cl = new xmppClient(options);