Bug 838686 part 1.  Add a helper class that can store a WebIDL callback or an XPCOM interface.  r=peterv
Bug 838686 part 2.  Use NodeFilterHolder in treewalker and nodeiterator and start using WebIDL codegen for NodeFilter.  r=peterv