Added gulp build with jshint. Fixed the problems found too.
Added test runner to gulp.