Switch to use jshint predef instead of globals

Hopefully this is what it's supposed to be.

Also I've added a .jshint specifically for test. For the time being I
am excluding tests when running jshint from the top level as it doesn't
resolve the right configuration and complains about all the jasmine
and development specific predefined globals.