Added bower support, minor refactorings

Removed all vendor js files.
Added bower.json and bower support.
Added `npm test` command