Add TLS support and Facebook chat demo (only for firefox)

Add TLS support and a Facebook chat demo.  This only works for Firefox for now, and will break Chrome until chrome.sockets.tcp.setPaused is updated (https://code.google.com/p/chromium/issues/detail?id=403076).
I git pulled the latest freedom-for-firefox from the repo and still get
that error. Can you make sure to push a commit to github when you publish
to npm. There's no 0.4.2 tag or commit in freedom-for-firefox. Github needs
to stay the canonical source.

--Will


On Mon, Aug 18, 2014 at 5:40 PM, dborkan <notifications@github.com> wrote:

> In lib/dns.js:
>
> > -      if (family) {
> > -        callback(null, addresses[0], family);
> > -      } else {
> > -        callback(null, addresses[0], addresses[0].indexOf(':') >= 0 ? 6 : 4);
> > -      }
> > -    } else {
> > -      callback(errnoException('ENOTFOUND', 'getaddrinfo'));
> > -    }
> > -  }
> > -
> > -  var wrap = getaddrinfo(hostname, family);
> > -  wrap.oncomplete = onanswer;
> > -
> > -  callback.immediately = true;
> > -  return wrap;
> > +  callback(null, hostname, family);
>
> Was this in Chrome? If so thats because .secure is not yet implemented
> there (due to the setPaused issue). If its in Firefox this would mean that
> you don't have the latest freedom-for-firefox.jsm available, and might need
> to do a npm update and "grunt firefox_demo_google" again.
>
> I'll fix those tests once we decide what to do regarding the DNS lookups
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/freedomjs/freedom-social-xmpp/pull/53/files#r16391225>
> .
>