Add unit tests, fix issue with r.js optimizer
Add vendor folder, update package.json
Fix unit tests