Add gulpfile, move tests and amend understat as per jshint