Re-Write for Performance and to Facilitate Node.js

Pretty much a ground up re-write removing all use of document, window,
etc in order to improve overall parsing performance and make Kruntch.js
much more portable to Node.js.