Add initial working implementation of the ccnx protocol handler for Firefox. The extension is ccnxProtocol.xpi.
diff --git a/js/ccnxProtocol/modules/ndn-js-header.txt b/js/ccnxProtocol/modules/ndn-js-header.txt
new file mode 100644
index 0000000..cc703e8
--- /dev/null
+++ b/js/ccnxProtocol/modules/ndn-js-header.txt
@@ -0,0 +1,24 @@
+/** This file is created by running make-ndn-js.jsm.sh in this directory.
+    It concatenates ndn-js-header.txt with all the ndn-js source files.
+ */
+
+var EXPORTED_SYMBOLS = ["NDN", "DataUtils", "readAllFromSocket"];
+
+Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
+Components.utils.import("resource://gre/modules/NetUtil.jsm");
+
+// LOG is used by some of the NDN code.
+var LOG = 0;
+
+// jsbn.js needs the navigator object which isn't defined in XPCOM, so make a local hack.
+var navigator = {
+    appName: "Netscape"
+};
+
+// Some code calls console.log without checking LOG>0.  Until this is cleaned up, make a local hack console.
+var console = {
+    log: function(message) {
+        dump(message + "\n");
+    }
+};
+