Added script to remove trailing whitespace prior to commit.

Not a git hook so that it's shared with other committers.
Added more linting checks; fixed some missing 'use strict' calls