update a few dependency versions in package.json and bower.json. Add logger.js. Other minor refactofring