Switch legacy options in .jshintrc for newer options.

It makes sense to keep things up to date, following project updates.
Legacy will still work at the moment, but not forever.

* "globals" can be used instead of "prefdef"
* there is no more "nomen" or "white" option
* add "trailing" (whitespace) to cover for "white" option
There is trailing whitespace in some files.

This was (newly) shown via jshint's "trailing" option (vs the legacy
"white" option).