added node example and added envelope variable to indicate whether running in browser or Node.js
Updated XML parser to use xmldom for Node.js. Removed duplicated xml parsing code, putting both in utils
update node example to log the kb