Added bower support, minor refactorings

Removed all vendor js files.
Added bower.json and bower support.
Added `npm test` command
Merge pull request #1 from kirstein/bower-support

Added bower support, minor refactorings