Add karma & unit tests

Add karma config
Use gulp-karma and create test task
Add unit tests