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).
Cool, I will leave the code as is then and update the tests.