Fix gulp jshint and make code pass jshint

Problem was that jshint-test overwrote some ".jshintrc" attributes, and
that object was then used by jshint-app. Fix it by generating new object
for jshint-test.

Making code pass jshint was mostly undefined global libraries.