generate doc mostly works

* add domToHtml for serialization

jsdom:
+ method structure is jsdom.jsdom not jsdom.env
+ fix .text as .innerHTML
+ fix .content as .innerHTML
+ fix NodeSet.forEach as Array.prototype.forEach.call(NodeSet, …)
+ fix .to_html() as docToHtml(…)
+ fix .add_child as .appendChild()
+-> handle lists using forEach
+ use .setAttribute() for clarity

* fix doc.querySelector / doc.querySelectorAll calls
+ include # for id matches
+ include spaces before >

fs:
+ fs.readFileSync should generally be toString(utf8)
+ standardize fs.writeFileSync()

shelljs:
+ cp -r has different semantics and needs a trailing /
+ mv needs a force to replace files

* make replace()s global
* always use encodeURIComponent() instead of imaginary URI.escape()

* fix scope issues
+-> (this isn’t accessible with forEach(function(){…}))

* remove superfluous require()s

navigation_menu:
* Finish Ruby port
- XXX Assume ** glob is for ‘jodoc’
* Add a cloneNode() function

version_menu:
* Fix basic bugs in version sort port